A real solution:
https://www.amazon.com/PetSafe-SSSCAT-Replacement-Spray-Deterrent/dp/B071JTYQVC
These cans have a sensor on them that poofs air when triggered. It is safe for the cats, and they won't connect it to you. They will connect that scary experience with the area and hopefully stay away. We've left empty cans around the house on the counter and they see it and do not attempt jumping up.