HSK10+
yǐjǐngxiàoyóu
as a warning to others
以儆效尤
in order to warn against following bad examples (idiom); as a warning to others
CC-CEDICT