Pumping While Pregnant... Helpful or Harmful?

Chelsea
Hello fellow mommies to be, I'm very curious about pumping while pregnant to increase and reassure I have a good supply, I'm currently pregnant with my second baby, and with my first son I struggled at being about to produce enough supply for him to feed, I eventually developed an infection at about 4-5 weeks after birth and was advised to stop breastfeeding due to the possibility of passing the infection to my son. I have read mixed reviews on pumping before birth but I would like some personal insight on the matter. I really want to try breastfeeding again with my second child but I also want to find ways to make sure my supply is in high demand when he's born due to the issues with my first go at breastfeeding, has anyone pumped while pregnant and if so did it help or hurt your experience with breastfeeding??