My collie—Lassie type—would not let my adopted todler sister pass our fence line going up to grandma’s place which was across the fence. There was a private dirt road between us but the collie would not let Bonnie walk past that fence line. Collie kept putting Collie’s body between Bonnie and Grandma’s.
No one trained her to do that.
I have another collie story for you. I owned one for years, and one of his uncles was owned by someone I knew. This other dog once stopped a child riding one of those big wheel plastic trykes from riding out into the street by lying down in front of him and letting the kid ram into his ribs.
Another time the dog was whining to get outside and finally zipped out the door when someone opened it. He ran over to the fence and started barking. It turned out that the little old lady next door (who always petted him and talked to him through the fence) had fallen in her back yard and was injured. She was crying but couldn’t make enough noise for any neighbor to hear, but the dog heard!