1.
to tell sb to leave or stay away from a place or person, especially in a threatening way :
The farmer warned us off his land when we tried to camp there.
2.
to advise sb not to do sth or to stop doing sth :
[+ -ing ]
We were warned off buying the house.