to stop yourself from saying sth or from showing an emotion
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition