I would have been able to read that sentence correctly without context if it had a comma: “allowed to fail, to teach them a lesson.”
I would have been able to read that sentence correctly without context if it had a comma: “allowed to fail, to teach them a lesson.”