How do I lose 10 lbs without beating myself up along the way

I’m in the process of losing 10 lbs (about 6 to go) but it seems like if I gain a lb I think “this isn’t working, its too slow, this is pointless” And then if i lose a lb i think “well its not going to last, you always mess it up, its only temporary – don’t get too excited” How do I go through this process from a place of love? Its like I’m so hard on myself thinking its helpful….