verb
BAD : Somehow we have to discourage people to commit crimes.
GOOD : Somehow we have to discourage people from committing crimes.
◆◆◆
discourage sb from doing sth : 'We always leave the lights on at night to discourage people from breaking in.'
Compare: 'You should try and encourage her to take more exercise.'