The verb discourage has 3 senses (first 3 from tagged texts)
1. (12) deter, discourage -- (try to prevent; show opposition to; "We should discourage this practice among our youth")
2. (4) discourage -- (deprive of courage or hope; take away hope from; cause to feel discouraged)
3. (2) warn, discourage, admonish, monish -- (admonish or counsel in terms of someone's behavior; "I warned him not to go too far"; "I warn you against false assumptions"; "She warned him to be quiet")