We are more than conquerors through Christ who strengthens us.
Hey, welcome to the forum!
Lately I've been greatly seeking the Lord and the guidance of the Holy Spirit. The other night I was extremely restless as I tried to sleep. I constantly in my spirit was crying out to the Holy Spirit, I tossed and turned like this for hours in a half-sleep, with my heart just crying out. After so much of this, and being not fully alseep or awake either one, I felt a little voice in my head say "The Devil is here" and then within my mind I could see a large Lion in my living room... huge. I prayed within me repeatedly "Holy Spirit strengthen me" and I went and attacked the Lion, I think I defeated it.
God has heard your prayers.
I remember a time of wrestling like that, and sometimes it felt like I was getting nowhere. Much of my prayer at that time was whining, greiving, despairing. That might not be true of you.
It took me a few good teachings to jostle me out of that and into a firmer stance. I do think that the crying out was important, and sometimes we don't even know why. The Spirit intercedes with groanings... and whether it was for you, or for someone else, who knows! You allowed His Spirit to pray through you.
Three different directions with this:
1. When I was in despair, I was also subject to harassment. When I finally realized that the harassing thoughts could be demonic, I was able to get rid of them instantly. Like the lion.
2. Yes, resist the devil and he will flee. You did that, and the lion - spirit fled.
3. God can intercede through you. When you yield to praying in the Spirit, you might be praying for people halfway around the equator. You might be praying for your country (and there is certainly enough turmoil to pray over!). You might have been praying for your own future.
There is not a lot of scriptural basis for this, but there's a bit.
Romans 8:26
In the same way the Spirit also helps our weakness; for we do not know how to pray as we should, but the Spirit Himself intercedes for us with groanings too deep for words.
1 Corinthians 14:15-18
I will pray with the spirit, and I will also pray with the mind; I will sing with the spirit, and I will also sing with the mind.
Else, if you bless in the spirit, the one occupying the place of the unlearned, how will he say the amen at your giving of thanks, since he does not know what you say?
Ex 6:5
And I also have heard the groaning of the sons of Israel, whom the Egyptians are enslaving. And I have remembered My covenant.
Ps 6:6
I am weary in my groaning; I shall make my bed swim in all the night; I melt my couch with my tears.
Ps 79:11
Let the groaning of the prisoner come before You. According to the greatness of Your arm, preserve the sons of death.
Eze 9:4
And Jehovah said to him, Pass through in the midst of the city, in the midst of Jerusalem, and mark a mark on the foreheads of the men who are groaning and are mourning over all the abominations that are done in her midst.(See also Mark 8:12,
Ac 19:6 )
Did you ever hear the story of the missionary whose house was about to get attacked, when the attackers ran away in fright? When friends from their home church were praying, angels across the globe surrounded the missionary's house. God can work through our prayers.
There's a book that reminds me of your experience -- it was written by Frank Hultgren, on spiritual warfare.
We wrestle not against flesh and blood.