Due to Unitys physics you could easily bug out of the room in the past. To fix that I push you back just before that happens which looks quite buggy.