I don't believe James is quoting scripture, but stating an overview of scripture.
That could will be the case.
The Holy Spirit is jealous and does not want to share us with anything or anyone. He wants all of us. The enemy is cunning and finds our weakness and uses that to take our hearts and mind off Jesus and the Holy Spirit envies anything that takes our love from Jesus.
Deut. 4: 24 speaks of God being jealous is this what you were thinking about??
Littlelamb, you might have the right scripture, I really don't have a completely good idea, and all honesty just a little clueless on this one. If it is the Spirit of God, yes your verse in Deuteronomy sounds good. But if it is man's own spirit, maybe Proverbs 3:31-34, but not even sure about that.
Maybe the real question should have been is James talking of the Holy Spirit, or are own human spirit?
Thank you both for your responsesl