I can’t lose weight..

I’m 255 pounds and 9 weeks pregnant and even before I got pregnant I changed my eating lifestyle around and on top of that ate way less and ate way healthier and even started going on walks but somehow gained 5 pounds??? What the hell. It feels like no matter what I do I either maintain my weight or gain it. I really need some advice. I don’t want to be morbidly obese..