2D Paper Character: Prevent from sliding off ledge

It’s been awhile, just curious if you had any ingenious ideas since. I’ve given up on this project for the past few months due to this, but since tried getting back into it.

I’d rather not have to create my own pawn with custom gravity just to get around this, but it’s the action I’m currently taking.