It's petty behavior to take revenge on other people.
Jim is beaten up by a guy in his neighborhood.
Jim wants the guy who beat  him up to pay for hurting him.
Jim reports the beating to the police and files a report against the guy who beat him.
Jim attacks the guy who beat him up with a baseball bat.
Jim sees the guy who beat him go to jail for assaulting Jim.
Jim is arrested for assault with a weapon and faces serious jail time.