A child molester is not necessarily a pedophile.
Pedophilia or paedophilia is a psychiatric disorder in which an adult or older adolescent experiences a primary or exclusive sexual attraction to prepubescent children, generally age 11 years or younger;
A gay man who has sex with a 15 year old boy is a child molester, but not a pedophile. There are LOTS of gay men who will have sex with a teenage boy, but will also have sex with adult men when teenage boys are unavailable. Just like there are lots of straight men who would happily have sex with 16 year old girls.
I would also add, that per the definition, somebody who had sex with adults most of the time, but molested 10 year olds when the opportunity presented itself, would also not be considered a pedophile, because he did not have a “primary or exclusive sexual attraction to prepubescent children”.
The term for those filthy soddomites is "pederast", the term for their action is "buggery".