If you warn someone away, you tell them to go away or to stop doing something because of possible danger or punishment.
Soon an official appeared to warn them away. [VERB noun PARTICLE]
Analysts warn us away from drawing any conclusions. [V n P from n/-ing]