Hanmen kyoushi (反面教師, Japanese/Chinese idiom), a “teacher by negative example”: the person or thing that instructs you precisely by showing what not to be.