James 4:1-10 can be divided into two:
Verses 1 to 5 --- we have the diagnosis of the cause of conflict among Christians
Verses 6 to 10 --- we have the prescription of the cure of conflict among Christians
The diagnosis of the cause of conflict among Christians is the desire for pleasure in themselves. They seek pleasure, they pursue their desires at any cost even if other Christians will be hurt and affected by it. They want to do what they want and want to get it that they don't even think of the consequences of their actions. They even fight for it if possible.
The cause is that they are really at war with themselves and at war with God. There is conflict without because there is first of all a conflict within.
The prescription of the cure of conflict among Christians is humility before God. "...submit to God" (verse 7). "Humble yourselves in the sight of the Lord" (verse 10). Humble submission to God's Word; its precepts and principles.