You have literally made up these scenarios based on no evidence though!
You can see by the vote and majority of comments that most people would be unhappy with this intrusion and don’t want a nosy child peering in the garden trying to wind the dogs up.
OP doesn’t need to train her dog to stop someone looking over her fence when the solution is to get the child to stop.
There is nothing at all to suggest that OP doesn’t walk her dog and she shouldn’t have to take it inside to stop a child misbehaving.
Why should the dog be made to go inside for something that’s not his fault when he wouldn’t bark if there wasn’t a random face popping up over the fence which probably startles him?
You have come up with two imaginary scenarios to make OP into the unreasonable person which is just bizarre and you seem to have decided this is a sweet neglected little girl when she is being rude by deliberately ignoring OP when she asked her to stop looking over the fence, she clearly knows she’s in the wrong as she runs away to avoid being asked to stop.
We can only go off what is actually in the OP to comment or all posts on AIBU are just pointless.
AIBU to ask my husband to clean the kitchen after he makes a meal?
He is having an affair and cooking for the other woman when you are at work and is deliberately not cleaning up to annoy you so you’ll leave him.
AIBU to ask my friend to pay back some money she owes me?
She can’t pay you back as her husband is financially abusive and she doesn’t have access to her own money and borrowed it for food because he starves her.
So many people seem to think that life is the same for everyone based off their own experiences and if someone has a different point of view they must be wrong.
You might think that OP is rude and not the child (because children can do no wrong) but that doesn’t make it fact.
Just because you would choose to interact with the child it doesn’t mean that’s the right thing to do. If we are making up scenarios how do you know OP doesn’t eat young children or feed them to her dog and encouraging her to interact with her neighbours daughter could lead to her peril and ending up on the BBQ?!