Maybe you could throw something on the lever, when the monster is under the gate.
What I have to throw?
There is small rocks outside, next to a bigger rocks. Pick up a small rock and use it on the lever, when the monster is under the gate, and it will crush the monster.