Is it possible to gain NO more weight?

I’ve gained 27lbs at 28w and I was already overweight. My doctor told me not to gain any more but I’m not sure what to do. I generally eat pretty healthy but I’m also constantly starving. I’m planning to cut out all sugars and almost all bread / processed carbs. What else can I do?? Anyone else in this boat?