I suggest making friends with your neighbours early. Go introduce yourself and have a chat with them. Once the baby is born, drop in on them again and let them coo over the baby.
We lived next door to a couple with a baby in our last unit. They knocked on our door when we first moved in, introduced themselves and apologised in advance for the baby noise. As our bedroom was against the wall of their baby's room, they would always take her into their living room when she cried so she didn't keep us up too much. Because we knew who they were and it was a baby, not a stereo system, we were willing to cut them some slack.