deter
verb [ T ]
uk/dɪˈtɜːr/ us-rr-to prevent someone from doing something or to make someone less enthusiastic about doing something:
deter sb from doing sth High prices deter many young people from entering the property market.
People said he was foolish to start his own business, but he didn't let that deter him.