The question is in the title. Actually, I need something of a synonym to "disencourage" and "demotivate" was the first word that came to my mind. Also, if it's possible to use "demotivate" with something not related to studying and/or job, which preposition should I use? I would try something like "demotivate from doing something", but I'm not 100% sure.
Edit: I've noticed a mistake just now: I mean "discourage", not "disencourage". As for the context, it's something like "demotivate young people from commiting crimes".