Advise needed about a dog with the baby...

Sydney
My partner & I are expecting a baby. I'm 7 months pregnant, and we started setting up our sweet baby boy's nursery over the last week. My partner lived at home with his parents and his dog before we moved into this new home. He left the dog behind, because it wasn't only his dog, it was also his mother's and father's as well. Well, here recently he decided to bring the dog to live with us. The dog is a larger breed dog, but he's never been aggressive. He's a very jealous dog, scooting himself between the two of us but he never takes it too far or bites or growls. But as I said, the last few weeks we have been setting up the baby's nursery, and the dog keeps going in there and peeing on his crib, swing, and EVERYTHING else! He also even poops on the baby's things. He's 100% house trained and has NEVER used the bathroom in the house before. I started shutting the door and the dog rams it until he gets it open. He also growls at me when I clean up the mess he's made.... 
I'm such an animal lover and I give them the benefit of the doubt but I'm very nervous about bringing a baby into the world with the dog acting this way.... I'm against giving up your dog because dogs are family members too, but would I be so bad for him to just go back and live with my boyfriends parents, where he's been living???? I don't know what to do! Is this normal or does this mean he will be aggressive towards the baby?? Basically I just want to know what YOU would do in this situation..😕