Temptation is not usually an invitation to do something you find repulsive. That would not work.
It typically offers something genuinely good, rest, intimacy, security, recognition, through a door that was not meant to be opened yet, or at all. The desire underneath is often legitimate. The shortcut is what does the damage.
Which is why fighting temptation by hating the desire tends to fail. The better question is: what is the real hunger here, and what is the honest way to feed it?
James gives an order that is easy to reverse. Submit first, then resist. Most of us try to resist without submitting, white knuckling behavior while giving God no actual authority over the underlying want. That is exhausting and it does not hold.
Start with submission. The resistance gets considerably easier when you are not fighting alone.
