to advise someone against someone, something, or doing something. We warned them all against going to the region at this time. I warned her against Gerald.
To advise someone that something is dangerous or problematic and should be avoided: I warned them against driving without seatbelts. The doctor warns against smoking.