There is no way to avoid it. You have to go through that room.
Unless you can jam the ceiling, you will die.
You have to throw something in the gears.
Something sturdy and solid.
You will need get past the boiling pond on the Isle of the Beast.