To deter
To cause (something) to flee by frightening it.
To talk to someone in order to dissuade them from doing something.