The Bible tells (in Gen 25:27 - 34) how Esau fell to temptation:
Esau was a skilful hunter, a man of the field: but Jacob was a mild man, dwelling in tents.
And Isaac loved Esau because he ate of his game, but Rebekah loved Jacob.
Now Jacob cooked a stew; and Esau came in from the field, and he was weary.
And Esau said to Jacob, "Please feed me with that same red stew, for I am weary." Therefore his name was called Edom.
But Jacob said, "Sell me your birthright as of this day."
And Esau said, "Look, I am about to die; so what profit shall this birthright be to me?"
Then Jacob said, "Swear to me as of this day." She he swore to him, and sold his birthright to Jacob.
And Jacob gave Esau bread and stew of lentils; then he ate and drank, arose, and went on his way. Thus Esau despised his birthright.
The stupid man, you might say. How ridiculous! Fancy going and doing a thing like that!
Esau's thought at the time was probably something like "I'm dying of hunger here. I've got to have some of that, and we'll worry about the consequences later."
(There were consequences, of course. You will remember that the Bible says later of Esau, in Heb 12:17: You know that afterwards, when he wanted to inherit the blessing, he was rejected, for he found no place for repentance, though he sought it diligently with tears.)
We need to understand a little about temptation. Can we say that temptation is a deliberate attempt to entice us to do something that we know God does not want us to do? The enemy will carefully arrange a time when we are not at our best, place something in front of us, perhaps unexpectedly, which is very attractive to our carnal nature, and ask for an instant response.
Says Selwyn Hughes: "Temptation involves a definite enticement to immediate self-gratification. The dictionary says 'To tempt someone is to beguile them to do wrong, by promise of pleasure or gain.' Temptation motivates a person to be bad by promising something that appears to be good."
You don't want to fall for that? Decide you are going to hate sin because God hates sin. Make a firm decision that you are going to produce a loud and definite "No!" when temptation comes. And here's an important key, in the words of Rom 13:14:
Put on the Lord Jesus Christ, and make no provision for the flesh, to fulfil its lusts.
Don't let yourself get into a state where you're likely to be tempted. Don't allow yourself to be in a situation or a place where you're likely to be tempted.
Remember that what the tempter tempts you with is never worth a fraction of what he's trying to get from you.
And don't be too quick to condemn Esau. There's a bit of Esau in us all.