Short of a handgun, try a Windex-type spray bottle with a 50-50 mix of ammonia and water. One whiff and they usually learn to stay away.
Good idea, but I would recommend a super soaker be used.
I’m just saying...