Chinese words · Chengyu

以儆效尤

yíjǐng-xiàoyóu

to warn others not to follow a bad example

Meanings from our own dictionary. Chengyu from the Xinhua idiom list, the most common first.