Before we are born again we constantly desire the things of the world. Once we are born again many of those desires remain, but now there is also a desire to do what God desires. James reminds us that our desires for sin is not God tempting us but a revelation of the things in our hearts that we desire.