Gaining too much weight😩

I'm 25 weeks pregnant and went to my doctor appointment today and come to find out I gained 9lbs in a month which is terrible !! I got 3 more months to go and I don't want to gain any more! Any tips on how to not gain any more weight!!