The best way to resist the temptation to give up when times are hard is to pray that you won't give in to the temptation. It's wiser and more effective to pray and ask for God's help as you stand against temptation than to try to exert willpower alone. Work with God, and pray you won't surrender to the temptation to give up.