So how do you think this should be handled then?
This happened in my game. the rogue wanted to open a fancy chest in place that already had other security measures. They investigated it for traps and did not find signs for it being trapped. They said that despite this, they open the lid whilst being behind the chest. A poison needle shot from the chest, but as the rogue was not in front of the chest, it missed. The chest was trapped, and they had just failed to notice the trap.
Do you think that instead the GM should have insisted that the rogue must act like they believe that the chest is not trapped, and thus open it normally?