When we face temptation we are called to follow the example of Christ. We are to respond with faith. But our ultimate hope is not in our ability to follow the example of Jesus. Only Jesus is consistently faithful. First and foremost we do not follow Jesus as our example. Rather we trust Him as our Savior. He is the faithful One, and we are faithful in Him.
When temptation comes, we seek to resist like Jesus. But when we succumb (and we will), we can look to Jesus. We can remind ourselves that God considers us faithful because we are in Christ, the faithful One.