This idea has been sent in to me as a way to stop cats roaming into gardens and killing birds –
Spray water at the cat(s) with a high-speed water pistol. That will deter most cats. If it continues, use vinegar instead of water. It won’t do the cat any lasting harm.