act like a child
This guy was throwing a tantrum like a 7 year old
need to grow up
could also be used to describe the referees actions. that's all i'm saying. did Amir Johnson deserve to be punished? Yes. Should the referee act like a moron in executing that punishment? Absolutely not. And, yes. When a referee/ump acts like a child in response to a player acting like a child, they greatly increase the risk of getting injured by the player. So, the ref was lucky that other players stepped in and kept him from getting punched.
Again, if the ref walks over to the scorer's table and gives the technical and dismissal sign, then it is not nearly as big a deal as the referee acting like a child, throwing a tantrum, rubbing it in his face, acting spoiled, etc.