We can differentiate by testing if the spirit confesses that Jesus Christ has come in the flesh, which indicates it is of God.
Watch the Teaching: What is the One Hope for All of Creation?