To deter someone from doing something means to make them not want to do it or continue doing it.
例句
Supporters of the death penalty argue that it would deter criminals from carrying guns...死刑的支持者认为它能阻吓罪犯携带枪支。Arrests and jail sentences have done nothing to deter the protesters...逮捕和监禁都没能吓倒抗议者。
英汉词典释义
vt.
阻止;制止
Don’t let failure deter you.别让失败把你吓倒。
英英词典释义
Verb
1. try to prevent; show opposition to;
"We should discourage this practice among our youth"