A Paedophile can be diagnosed as such without having sexually assaulted a child. In the same way you can be heterosexual even if you are a virgin.
You can't "discourage" someone from having urges. All you can do is to help them deal with these urges in a non-destructive way. In the same way that an alcoholic might have an urge to drink, and you provide a support mechanism to help them refrain from pursuing a destructive action.
You can't just say, for instance to a heterosexual, "stop being attracted to women". Or say to an insane person, "stop being insane". It's not realistically going to be effective is it? All you can do is to help them manage their situation in a way that is not destructive, either to other people or themselves. It's possible for people to live without having sexual intercourse with another person, and it's also possible for people to have sex with people that they are not sexually attracted to.