Breastfeeding during pregnancy.

I am 7 weeks pregnant with baby number two. I have a 10 month old who nurses on demand and I am enjoying it very much. The doctor adviced I should stop nursing at 25 weeks... Do I really need to stop? Thoughts?