But I say to you that everyone who divorces his wife, except on the ground of sexual immorality, makes her commit adultery, and whoever marries a divorced woman commits adultery... Matthew 5:32 (ESV)
Do not be overcome by evil, but overcome evil with good.
James conveys the idea that only when we submit to God will the devil "flee from you" as we are then committed to God ...
Likewise the Spirit helps us in our weakness. For we do not know what to pray for as we ought, but the Spirit himself...