Although we are told that God has not given us a spirit of fear but of a sound mind (2 Timothy 1:7), and that confusion is not of God (1 Corinthians 14:33), there are still times when we must fight that battle.
Confusion in the spirit can be devastating. It can seem impossible to discern right from wrong - God's voice from the imposter who comes as "an angel of light."
The stock advice says to compare the voice with what's in the Bible, but even then, it can be difficult.
The only way - and it's often hard work - is to pray until the light comes through. Even then, we must wait on God to reveal it to us.
He will. He promises that He will be with us always and He will, no matter what we are "feeling."