I had a dog that was terrible about stealing food off the kitchen counter when nobody was looking. Thought I would break him of the habit by making something hot enough to make a true pepperhead's spin. Was hot enough I couldn't tolerate it, and he really didn't like it, but he still went back to the well several times in a row because it was "people food." All I did was reinforce his bad behavior.my uncle's solution to that problem was a squirt gun loaded with every kind of the hottest pepper sauces and powders he could find, with enough water to make it flow. Hit 'em right in the mouth while it was open to bark.
I have no idea if it worked ...