Yelling at a parent

This sounds bad considering the title. Anyway:

Today is my volunteering day. I was alone with the prof. there, sooo we were two on a bunch of children. So two sneaked out without us noticing really. Suddenly two kids came in, saying one was hit by a car. We of course ran there to see what happened. As it turned out, the car stopped so the kid hit the car and not the opposite. They were chasing each other on the school property and ran out on the street. Luckily, no one was injured. Well the kid who hit the car was alright but confused, the other one whom chased him was in a really bad state of shock. He was apologizing, crying, couldn't breathe and was truly upset. As the prof. who actually works there had to deal with the police and parent I went to comfort that other kid. As he couldn't breathe we went out to catch some air. After a while kids started to gather around and suddenly the kids that hit the car dad came and he started to yell at the other child, yes child who's 5th grade now or so. He started to yell at him things like. "He could have died!!" or "He could have lost a leg or something!" etc..as it made the kid more upset I tired to comfort him but it didn't work(the kid has a heart condition too), and I couldn't take it anymore and I looked at the dad and said something among the lines (idk what exactly, I don't remember): "Alright, nothing happened, can you stop yelling at the child now?!" And the dad looked at me and was like "Oh so now nothing has happened but if something has what then?!" and I replayed something but idk what it was. I believe I was focusing on making clear to him that he can't just yell at someones child that's obviously upset right now.. so we pretty much kept yelling at each other until I believe I said something among the lines: "He's still a child, don't you see that he's upset (or) don't you see what you're doing to him?!" as the child kept crying. The parent suddenly stopped though and he left as the kids behind me were silent and the prof. came after a while and we all went inside.
After that she called the crying kids mother who came and picked him up and the kid kept crying as he was scared to be hit I think but his mom didn't seem like she'd do so though.
Anyway after that another kid asked me why didn't I beat his dad up and I was like What?! He'd break me like a twig if I tried..so we laughed a bit and the atmosphere calmed down.

So, I do believe I did the right thing. I certainly hope so.

Take care and stay safe

~Sasusaku

End