The wine has turned sour and still can't be sold. The original metaphor is that the treacherous minister obstructed the learned and virtuous people from serving the country, so that the monarch was hoodwinked. Later, it refers to the improper operation or improper employment.