any actually good solution for preventing the player from falling off ledges?

how big are your levels?

might only require half an hour to place some blockers even in a pretty large level