You apparently have a real problem with confusion between dogs on and off private property.
That's an absolute.
Some people install fences of various heights ~ and I've heard that sometimes that can't be too high!
The animal here was supposedly restrained by an electronic fence. They don't always work. Besides, not everybody knows about them.