A child must learn
Consequences for their acts.
My now 13 yo daughter still has a bad temper (inherited from me). When she was 2, she hurled her shoe, and it hit another man in the leg. I picked her up, swatted her butt once, and brought her to the car. I then made her say she was sorry to the man.