gaining too much weight

Ta
I'm 26 weeks pregnant and I'm at 20lbs weight gain, my doctors telling me I'm measuring ahead and only should be gaining about a pound a week and I'm wondering if anyone has any tips on not gaining too much weight, I do exercise but I often give into my cravings 😨