I would do it at least a month to two months before your due date so that you're not rushed to get everything ready all at once & so you have enough time to get what ever else you need/want that you didn't get at the shower(s)
in the 30's normally a month before but honestly I've been told its better to do it at like 32 so you still have time to get what you didn't at the showrr