The math community is rather small, bad people are known (and there's only few of them),
stories about them circulate.
Just ask around: "Do you think that it's a good idea that I go talk to professor X?" If professor X happens to be an (one of the very few) unethical mathematician, people will warn you against talking to him/her.

