Ding,
Many people wonder how Jesus could be tempted if he is God, because they believe God cannot be tempted. The common scriptural text given in support of this view is this one;
James 1:13, "Let no one say when he is tempted, "I am being tempted by God"; for God cannot be tempted by evil, and He Himself does not tempt anyone." Thus some wonder, How can Jesus be GOD if God cannot be tempted?
However, notice that this verse does not say the God cannot be tempted but rather it says that “he cannot be tempted by evil”- that is the point of James thought, God does not tempt us with evil (to sin) nor can He be tempted by evil and sin.
We know from the biblical accounts that Jesus was tempted at all points (Heb.4:15), meaning Jesus was tempted at all points as mentioned in 1 Jn.2:16- the world—1) the lust of the flesh, 2) the lust of the eyes, and 3) the pride of life (1 Jn.2:16). He was tempted directly by the Devil to do evil by disobeying god and coveting the kingdom. Even Satan the most power creature was unable to tempt Jesus to do sin or evil (Mt.4).
The difference between Jesus temptation and that of simply man is that temptations often instigate a response from the sin nature in man, but Jesus had no sin nature.
2 Corinthians 5:20-21: “For He made Him who knew no sin to be sin for us, that we might become the righteousness of God in Him.”
1 Peter 2:21-22: “For to this you were called, because Christ also suffered for us, leaving us an example, that you should follow His steps: "Who committed no sin” Nor was deceit found in His mouth";
1 John 3:5-6: “And you know that He was manifested to take away our sins, and in Him there is no sin.”
So you can see, jesus was tempted and could be tempted although he being in the divine nature (he was fully man and fully God), but could not commit evil or sin because unlike a man, he had no sinful nature.
SIN.
Hope this helps, Peace Lilly