Sure. It’s not smart to poke a snarling dog when it’s inside it’s own territory and trying to protect the place. BUT when that snarling dog comes into my garden and thinks it’s its territory now as well, I will first poke, then kick, and whatever stronger actions I can think of to convince it to leave. If it is too dumb or stubborn to get the message then it will have to be put down, removing the threat altogether.