Masking tape can be used to prevent paint getting where you don't want it.