Pregnant and have a cat

Michael

My wife and I are expecting in July and I’m wondering if anyone has any ideas about how to keep my cat out of the crib. My two ideas are to either build some sort of openable latch to keep him out of the top or to set it up a few weeks in advance and out double sided table to discourage him from jumping in. The issue is that he “needs” to be in a room/object if it’s closed to him. Thanks for any tips!