Learner's definition of SELF–RIGHTEOUS
[more self–righteous; most self–righteous]
having or showing a strong belief that your own actions, opinions, etc., are right and other people's are wrong
a self-righteous person/tone
It's OK to criticize, but don't be/get self-righteous about it.