You may dissuade somebody from doing something.
Definition: to deter by advice or persuasion; persuade not to do something; to advise against; To prevent (someone) from a purpose or course of action with conviction.
Example: I dissuaded my friend from pursuing such a rash scheme.