Man trap. Booby trap. I believe that's illegal almost everywhere.
Also, I saw a cop show a couple of years ago where in CA, a crook was also charged with having an entryway designed to delay police entry. I always wondered about that. BS?
Unless the design included a mechanism likely to inflict serious bodily harm, it sounds like BS to me.
When I was a kid, a local TV station went along with the cops serving a warrant. It didn't go well - the cops couldn't break through the door. When a guy opened a small window in the door to talk to the cops, despite their demands he IMMEDIATELY open up, he flatly refused until they produced the warrant and held it up for him to read. THEN he opened up.
The front door was fortified like the ones you see in medieval castles in the movies. Makes me wonder why the real crooks don't do stuff like that all the time.