To caution s.o. (so as to avoid s.t. bad happening); to avoid s.t. (so as not to meet with bad circumstances).
The reason I'm warning you not to drink is to caution you so you don't get an ulcer.
The reason I told him not to take is personally is so I could avoid our getting into an argument.