This truth will help you in your victory over the devil and the lies Satan sends your way. “It is not a sin to be tempted.”
“Seeing then that we have a great High Priest, that is passed into the heavens, Jesus the Son of God, let us hold fast our profession, for we have not an High Priest which cannot be touched with the feeling of our infirmities, but was in all points tempted like as we are, yet without sin.”
Let us therefore come boldly unto the throne of grace, that we may obtain mercy, and find grace to help in time of need.
Hebrews 4:15-16 [Emphasis mine]
Jesus proved Himself to be the Holy One of God when He resisted temptation to sin.
There is a direct relationship between loving God and enduring temptations.