the truth of the matter is, if it is God talking to you, you will have peace about it. if it is the enemy , it will go away when you speak the name of Jesus.
remember, god will not say ANYTHING that is contrary to the bible. if you ask god to give you clarity and discernment, he will!!! the next time it happens, speak the name of Jesus over yourself and thought etc. the bible says in Mark 16:17 “And these signs will follow those who believe: In My name they will cast out demons; they will speak with new tongues; (NKJ) you have the power over the enemy in Jesus!