To discourage means to make someone feel like they can't do something.
For example, if you want to climb a tree but someone tells you that you will fall and hurt yourself, they are discouraging you.