warn away from
warn away (from someone or something)
To caution one to leave or not to come near (someone or something). A noun or pronoun can either be used before or after "away." The government put up a sign warning away any potential hikers. Police had to warn people away from the wild bear, as they kept wanting to get close enough to take a photo. My parents tied to warn me away from him, but I just found him too irresistible.
warn someone away from someone or something
to advise someone to avoid someone or something. We warned her away from the danger, but she did not heed our warning. Why didn't you warn me away from Roger?