People discipline other peoples’ children all the time.
I’ve done it. It was called for. When the neighbor kids were climbing on their garage I told them to get down. They were first or second graders, or something, who couldn’t possibly be doing anything productive on top of a garage.
When they sassed me in response, I assured them yes, I was the boss of them, by virtue of the fact that every sober parent on the planet would agree with me, as would any emergency room physician.
And then I repeated, rather emphatically, that they were to climb the hell down from the garage roof right now or things were going to get serious.
I’m a parent now, and realize everyone knows get serious really means: I am going to keep hurling empty threats at you until you get tired of listening to me and give me WHAT I WANT.
Fortunately these kids didn’t wait to find out what get serious meant. They climbed down.