Word Definition - 以儆效尤

yǐ jǐng xiào yóu (idiom) to warn against following bad examples; as a warning to others