I mean, it seems you can't be precise enough to get yourself out of this (maybe it's just me)
Ok ok... Here you didn't have to climb there you can just shoot at the switch to turn it off