to prevent yourself from doing sth; to avoid telling sb sth
Oxford83% of films
to prevent yourself from doing sth
fighting with everything you have just to keep from blacking out.
Oxford17% of films
to avoid telling sb sth
They'll use it to keep from you that which is already yours.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition