Contemporary English Version (CEV)
This is just what the devil does -- he tries to get us to doubt the goodness of God.
God has promised us so much, and God has never failed to live up to his promises, but the devil sneaks along and plants these questions, these doubts, about whether or not God really wants the best for us. Any time there is a hint of limitation or adversity, the devil sneaks in and points at that, focusing our vision on a perceived slight to the point that we omit all information to the contrary. I can almost imagine God in the background, jumping up and down and waving our arms, trying to remind us of all the good gifts we have and the grace that has been poured out upon us, but we narrow our field of vision and limit our hearing to only what the devil has to say, unaware that we are blocking out evidence to the contrary. In that moment, focused on momentary wrongs, it is easy to give in to temptation, because we can idealize the choice we're making, believing that it will fix our wrongs, that it will restore justice.
So when we are presented with temptation, the answer is to remember all that God has done, all that we have to be grateful for. God has not abandoned us, and God wants the best for us, even if 'the best' is something we can't fully understand in the here and now. God loves you, and always will.