Jesus had two natures, His divine Spirit, God the Son, Logos, and His flesh and blood body with its needs and desires.
Humans have two natures, our human "spirit/soul" and our flesh and blood body with its needs and desires.
If we consider the concept of being "tempted" we humans can have a circumstance put before us where we choose to do what we believe is in the will of God, or what we otherwise would choose to think or do. These same "opportunities" to sin occurred in the same way with Jesus, such as in the wilderness, but He always choose to do God's will. When we say, as in James, God cannot be tempted, the idea is not that the circumstance does not arise, but that God (God incarnate) would have no inclination to choose other than God's will.
Humans have two natures, our human "spirit/soul" and our flesh and blood body with its needs and desires.
If we consider the concept of being "tempted" we humans can have a circumstance put before us where we choose to do what we believe is in the will of God, or what we otherwise would choose to think or do. These same "opportunities" to sin occurred in the same way with Jesus, such as in the wilderness, but He always choose to do God's will. When we say, as in James, God cannot be tempted, the idea is not that the circumstance does not arise, but that God (God incarnate) would have no inclination to choose other than God's will.