As to James 4:4, I don't think we can use the definite article "the" before the word "enemy" for the New International Version, Both 'a' and 'the' are possible. 'An enemy' sounds better, because it parallels 'a friend'. It's a matter of style.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.