Just use any protective covering. Mask it or gaffer it off.
If the surface won't show, or be affected by a slight overspray then as mentioned, just go gently around the edges.
Big problem and the trap newbies fall into, especially when spraying is applying too thick. The other is applying when conditions do not suit, too damp, too hot, too windy (if spraying), chance of rain.......
This is why many now won't seal. It is a complete pain in the ....................