One needs to remember that though Jesus was God in the spirit, He was man in the flesh. The Flesh was the part being tempted. But the flesh was under complete submission to the spirit. We each have this dual nature, though we have a genetic nature of sin "The Adomic nature", we are born sinners...