Question about deadly Locks

By player1500752, in Mansions of Madness

Hi, there is a Lock (2 with the expansion),which are instantly deadly. Does the player die in the room he is coming to, or the room he was in when he opened the door. This is important for the recovery of items, some are critical for Objectives.