Resisting such temptation must have been very difficult for Joseph, especially given that he was in his late teens at the time. Such temptation is the real test of morality. Many of us refrain from sin merely due to lack of opportunity. We stay pure because we are not sorely tempted. The real test of our virtue is resistance to real temptation.
Temptation is one of the great tests of life and character.
For most forms of temptation, flight is the best way to resist. To reason with the tempter almost never works. Many times these words will come from what one considers to be a trusted companion. Thus, one will be inclined to reason with the tempter. This is dangerous.