prevent the occurrence of; prevent from happening; "Let's avoid a confrontation"; "head off a confrontation"; "avert a strike"
To ward off a danger or illness means to prevent it from affecting you or harming you. She may have put up a fight to try to ward off her assailant Mass burials are now under way in an effort to ward off an outbreak of cholera