Pets and a newborn

Alexis • First time parents. Baby 👶🏻💙arriving June 2016.
Hi ladies, 
Do any of you have pets ? I have two Labrador retrievers ! ❤️🐶
My doctor and my mom are telling me to make sure to keep the dogs away. I get it but I don't feel like my dogs would do any harm to the baby (of course in the beginning I will keep them away due to the hair and potential bacteria they might get from playing outside) but what have you ladies experienced? I guess their concern is that they are big dogs and even unintentially they can harm the baby.