James 4:5 says, Do ye think that the scripture saith in vain, The spirit that dwelleth in us lusteth to envy? James then asked if they thought that the scripture was vain in what it said. They only had the Old Testament then, but we as followers of Christ today have the New Testament as well, and this is part of that scripture. We can either believe that James was inspired by God when he wrote this for it to be a part of the Bible, or we can see it as just something some man wrote in the past. James then added if we believe that the Holy Spirit that dwells in each Christian would lead us to have lust or and envy for the things of this world, and the answer is no.
Verse six adds, But he giveth more grace. Wherefore he saith, God resisteth the proud, but giveth grace unto the humble. James said that instead of lust and envy, God gives grace to the humble, those who are not self-serving and lusting after the things of the world out of envy.
Verse seven continues, Submit yourselves therefore to God. Resist the devil, and he will flee from you. James then said that we are to submit to God and if we do, then the Devil will flee from us. The Devil cannot make us do anything, and the stronger that we are in our faith in God, the less we will be tempted to give in to lust and envy and to reach out to the lost people of the world with the grace of God, which can only be attained by putting our faith in Jesus Christ.
Verse eight concludes, Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded. James then said we are to draw close to God and He will draw close to us. If we are full of lust and envy, then all we have to do is draw closer to God by faith. When we do, He will purify our hands and our hearts by the shed blood of Jesus Christ, which is the only way we can be purified. As Christians, God is always close to us if we continue to live by faith, but we are not always close to Him, and when we aren't, we are double-minded.