The guy who came in was in pajamas? That makes no sense if it was a security guard.
Whenever you get stuck with a room with an adjoining door, make sure it's locked. I avoid those rooms like the plague but on a few occasions it was the best option available at check-in.