It would be nice to think that everybody who claims to speak for God is one of His messengers. But that is not true. There are true prophets and false prophets.
You know what people are really like, by seeing what they do over a long period of time. The 'fruit' of their lives is the natural expression of what is in their hearts.