Weight gain.

Before i found out i was pregnant i was at 282 LBS. Now I'm at 294 ( 5 MONTHS NOW) and my doctor is mad. I eat heathier and i walk all the time. For work an we go hiking (walking around zoos and stuff) what should i do to stop gaining weight.