bible.com/bible/100/jas.4.7.NASB1995
Submit. Lit. “to line up under.” The word was used of soldiers under the authority of their commander. In the NT, it describes Jesus’ submission to His parents’ authority (Lk 2:51), submission to human government (Ro 13:1), the church’s submission to Christ (Eph 5:24), and servants’ submission to their masters (Titus 2:9; 1Pe 2:18). James used the word to describe a willing, conscious submission to God’s authority as sovereign ruler of the universe. A truly humble person will give his allegiance to God, obey His commands, and follow His leadership (cf. Mt 10:38). Resist the devil and he will flee from you. The flip side of the first command. “Resist” literally means “take your stand against.” All people are either under the lordship of Christ or the lordship of Satan (Jn 8:44; Eph 2:2; 1Jn 3:8; 5:19); there is no middle ground. Those who transfer their allegiance from Satan to God will find that Satan “will flee from” them; he is a defeated foe.