Turn off the water
First, turn off the shut-off valve or the valves under the sink and open the tap to depressurize the pipes. Have a bucket and old towels ready: there will always be some residual water in the pipes. Test that the water is really turned off before loosening anything.