unfortunately a lot of people think their dog is under their control. If your dog has gotten to the point of someone is hitting it with a stick to get it to go away then it's out of your control. Out of control doesnt just mean aggressive, its also means excitable and jumping on others playfully
I agree, it’s unacceptable behaviour, however, that does not mean it is acceptable or sensible to react violently in response.
The dog owner is likely to react violently themselves to protect their pet so from a self preservation standpoint it is an idiotic thing to do.
The dog is likely to go one of two ways, Yelp and run away and possibly react aggressively the next time because they’ve just been trained that unknown people violently attack and therefore need to frightened away, offence is the best defence and all that.
Or, the dog is going to get defensive and attack the person with the spray/stick.
Most medium and upwards sized dogs can cause severe injury to people if they are determined to do so.
They are very strong for their size and extremely fast.
Most people will struggle to successfully fight off a truly aggressive determined dog who intends to damage.
Which is, fortunately, very rare.
I do wonder too, if breeds are relevant here.
Those who would be comfortable thwacking say, a cocker spaniel, I wonder if they would be quite so reckless against a German Shepherd dog, or a Rottweiler, or a Great Dane.
Dogs which could kill you extremely easily if they wanted to because of their size.
Something tells me probably not.