to tell somebody to leave or stay away from a place or person, especially in a threatening way
Example:
- The farmer warned us off his land when we tried to camp there.
to advise somebody not to do something or to stop doing something
Example:
- She wanted to ask him about it but the look in his eyes warned her off.
- We were warned off buying the house.