Caught between a railing and a mesh gate

I seem to have gotten myself into a bit of a pickle. Not sure how I’m gonna get out of this one.

Maddy