temp‧ta‧tion [uncountable and countable]
a strong desire to have or do something even though you know you should not
temptation to do something
There might be a temptation to cheat if students sit too close together.
Resist the temptation to buy the item until you're certain you need it.
I finally gave in to the temptation and had a cigarette.
something that makes you want to have or do something, even though you know you should not:
Selling alcohol at truck stops is an unnecessary temptation for drivers.