cautionary tale
bad example, warning, admonitory advice, admonition
Link to present incidents:
Opponents of the New Jersey bill often use California’s experience as a cautionary tale, saying that medical marijuana is so loosely regulated there that the state has essentially decriminalized the drug.
New York Times, January 11, 2010