A basic tool for recognizing if you are under spiritual attack or dealing with foul spirits is to judge the fruit: “By their fruit you will recognize them” (Matt 7:16). Is misunderstanding coming against your friendships? Pray against that. I bring the cross and blood of Jesus Christ against all misunderstanding and command it bound to his throne—by his authority and in his Name. Are you feeling fear? Discouragement? Self-hatred? The fruit of all that is pretty obvious—it is foul, dark, and from hell. Resist it in the Name of Jesus.
I am not being simplistic. I understand that often many other issues are involved: our brokenness, our sin, our history. Sometimes there’s a reason we struggle with certain things. That’s why James says we should first submit to God, then resist the Devil.
For instance, say you keep getting hit hard with a spirit of resentment. Commanding it to leave will not make it go away if you are entertaining resentment in your heart and engaging it in your imagination. If you’ve opened the door to it by agreeing with it in your thoughts. First you have to repent of resentment toward others, yourself, and God. Repent. You seek the healing of Jesus in the wounds that allow resentment to come. You choose to love Christ right here, in this very place. This is how you submit to God. Then you will have the authority to command it to leave because you’ve withdrawn the welcome mat.