You can't really die in this game, I don't think? Climbing on top of the ledge prevents the enemies from ever reaching you.