deter from one’s purpose

See: dissuade