Jesus shared our human nature and was tempted to do wrong just like us, yet he never sinned. This made his sacrifice and his victory over sin and death meaningful. After God raised him from the dead, he made Jesus immortal and unable to be tempted to sin. God also plans to change the inhabitants of his Kingdom in the same way.
“For we do not have a High Priest who cannot sympathize with our weaknesses, but was in all points tempted as we are, yet without sin” -Hebrews 4:15