If, as PAX, I encountered a door marked: STAFF and AUTHORISED PERSONNEL ONLY. I would not go in.
Perhaps, but however....
Purely an assumption here, (perhaps a crew member can enlighten us), presumably when crew are taking bunk rest, they do not do so whilst still wearing their uniforms. With a mixed crew on board this could provide a problem if the door lock is broken.