Think of it this way. Lets say he hired a Mexican with a gun to watch the sheep. And lets say this Mexican got it in his head that any hiker passing by was a threat to be shot at. It’s not the dogs fault that it’s judgement is wrong,, but why is it my job to either get bitten, or to never get out in the public forest?
It’s like that.
This sheepherder has no right to force everyone out of the forest because of the method he uses to protect his sheep.
Still wrong, as this is an invalid straw-man argument.
People are expected to be able to exhibit judgement, and in this case, the “Mexican” does not exercise judgement. Dogs are not expected to exhibit this level of judgement. (Also, the rifle and shooting anyone passing by is not in the same league as the level of protection and distance involved with a dog.)
Also in the case of the dogs, they are not “forcing everyone out of the forest.” They are just enforcing distance from the herd. Your straw-man Mexican might be forcing everyone out of the forest by blasting away at everyone within rifle range, but the dogs are not.
You need to be prepared/practiced to avoid and protect yourself in the case of non-avoidance.