to stop yourself from doing sth; to prevent you from doing sth
Definiciones del Oxford Advanced Learner's Dictionary, 9.ª edición