Actually you can't switch the turret position you have to shoot at player with precision so that ball will push you back...
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