Is it ok to lose weight the last weeks of pregnancy?

Bárbara • I'm 29, and I have a beautiful baby girl born on May 30th, 2017 ^^ I also have a dog named Oliver and I love him lots!
My Dr. told me I have like 3lbs more than what she expected from me so now I started eating pretty much only fruits (she told me to do that, and no bananas, grapes or pears) but I don't want to hurt my baby! I keep walking and stuff but this last month I suddenly got pretty big! Is it bad to lose weight the last weeks? I'm 36w2d! Opinions please?