Kistemaker says:
Sixteenth-century German theologian Zacharias Ursinus considered whether he was able to comply with what God required of him. He concluded, "No. I have a natural tendency to hate God and my neighbor." The spirit of man longs for the pleasures of this world and perversely seeks its friendship.
Is there no hope, then? Certainly! Note the contrast with the adversative but in the next sentence (Jas 4:6). "But [God] gives us more grace." God comes to us in the redeeming love of his Son, who is full of grace. "From the fullness of his grace we have all received one blessing after another," writes John in the prologue of his Gospel (John 1:16).
Christians are those saved by grace alone (Jas. 1:18; cf. Eph. 2:8-10), that know the giver of grace (Eph. 4:7), and their continual need of grace (Rom. 6:14; cf. Rom. 6:1), and that live by grace (1 Pet. 4:11). Anything God calls and enables us to do is by his power (Phil. 2:12-13; cf. 2 Chron. 16:9; Psa. 127:1; Isa. 64:4; Acts 17:25; 1 Cor. 15:10) and for his glory (1 Cor. 10:31) is fueled by his grace. While a proper understanding of God's grace increases humility, God's gift of sustaining grace is enjoyed only by those enabled to be willing to admit their need and accept the gift. The proud meet only resistance from God (cf. Psa. 18:27; 34:18; 51:17; 72:4; 138:6; Isa. 61:1; Zeph. 3:11-12). See Proverbs 3:34.
James used Old Testament language of worship to describe how believers may gain divine wisdom and avoid quarrels and envy by submitting to God in faith and repentance, aligning themselves with God and refusing to give allegiance to Satan. James also offered assurance of forgiveness to those who honestly seek it (cf. Zech. 1:3; Mal. 3:7).
Satan, a fallen angel, is not equal in power or authority with God. Although Satan remains powerful, he is not invincible. Christians are to resist the devil by relying on God to protect them. As God comes near to believers, the devil flees. See "Satan: Did the Devil Make Me Do It?" below. See WLC 104.
To submit their selfish desires to God, James’ readers must resist the devil, the ultimate source of earthly wisdom (see note on 3:15). Because of the Spirit’s grace (1 Pet. 5:8-9; Eph. 4:27; 6:11), the devil will flee when a Christian resists him. James assures his readers that when they come close to God, he will receive them. God promises his people that if they truly repent, he will forgive their sins and restore their fellowship.