Advise (someone) against (something)

To suggest that something should not be done.

I advised my friend not to swim in the river.