In Daniel's case, he focused on how Daniel was able to resist Nebuchadnezzar's cultural brainwashing, and he laid it to one particular verse: Daniel 1:8-
Ezra had the battle of teaching a fallen, away-from-the-faith people how to worship again. He was facing not only external enemies, but people who were marrying outside the faith, using usury to make slaves of each other, and leaders who scoffed at doing what needed to be done. How did he handle it?
Second step: Prepare your heart. And how do you go about that? Prayer, and the Word. Ezra prayed, and then "sought the Law of the Lord". He had a calling- to teach the Law, and get people to live by it once again. He held a 6-hour-long sermon on the Law at the dedication of the foundation of the Second Temple. The easiest days (for me) to fall are the days I don't read the Bible, and the easiest days for that are the days I don't pray about what I read first. Without prayer, the words become just words; the reading without depth becomes boring; the heart finds "better things to do."
For Paul, he looked at two points. The first was early in his ministry, the "Not that I have attained" speech where he describes his goal, and the late in life letter to Timothy where he says he "has fought the good fight", and knows his race is done. You can be saved and say, "Well, that's it, I'm here," or you can set a goal- or rather seek God's goal for you- and work at that, setting it as the goal before you, and not being satisfied till you get there. By keeping the goal in mind, you achieve Step #3- not that you've gotten there, but by recognizing you are still GOING there, and that you still WANT to get there. But without the first two, it's almost impossible to get to that third one. If it was easy, there'd be about 10 million fewer "self-help" books.
And that brings us to Jesus. As Dr. Jeremiah said, it almost seems unfair to bring Jesus into something WE need to do, since He was God and we are men. But we still need to follow His example, and He teaches what we need here as a 12-year old boy. You remember the story- The family was heading back home from Passover in Jerusalem, and when Jesus wasn't with them, they assumed that, like others His "age", He was playing with the boys. But then they found out He just wasn't there, and panicked. They hurried back to Jerusalem and learned a lesson in how he wasn't like the others:
For Jesus, the FOCUS was on the mission, and that is Step # 4. His focus was laser-pointed at doing His Father's will. To defeat this recurring temptation in our lives, then, we need:
1- Purpose our mind on doing what is right.
2- Prepare our hearts with Prayer and the Word.
3- Set the goal that as long as you have breath, you have a purpose.
4- Focus on that goal, and exclude the thoughts that start the train going the wrong way.
And you see, you can't leave one out, because each is almost impossible to do without the one before it. And if the first one is to "set your mind" that brings you to one inescapable conclusion:
It doesn't start with God waving His hand, or a magic wand, or a list of do's and don'ts. It starts with you making a choice, and sticking to it. And here you see the importance of this line of Paul's:
2Co 10:5 Casting down imaginations, and every high thing that exalteth itself against the knowledge of God, and bringing into captivity every thought to the obedience of Christ...
Like I said near the start- when the stress, or problem, or temptation first comes up, that's when the battle is won or lost- do we take it captive to obedience... or does it take us?