Ben Sira 32:20

20 Don't take a course of action that is dangerous, and don't make the same mistake twice.