Set up the cat's environment so that his misbehavior is not a rewarding experience. Let's take a look at furniture scratching as an example. While making your cat's scratching post fun, rewarding and exciting, the training process also requires you to make the furniture unattractive as a clawing item. Instead of you telling the cat to avoid the furniture, let the furniture itself tell the cat to stay away. It's up to you to find something your cat does not like. See the cat scratching training article for full details.
Caterpillar: Stay Away - Caterpillar Inc. (NYSE:CAT) | Seeking Alpha
Even if you run out of gas*, you can still set StayAway to the “beep only” mode, so the beep will sound when motion is detected, which still makes the cat head in a different direction. Why? Because he knows what’s coming after, and he does not want that!
Stay away!! - Review of Cat City Grill, Fort Worth, TX - TripAdvisor
Both sssCat and StayAway are not divine devices, and sometimes they may miss a cat running alongside them. Based on our observations, StayAway was more likely to miss than sssCat. However, that just refers to a case when you want to keep a cat from crossing a certain border. If you want to keep a cat off a counter, or away from a closed door, both work every time.
Why During Pregnancy You Should Stay Away From Cat