People forget the original saying was "one bad apple spoils the whole barrel."
I'm strongly inclined to include the abbreviated phrase in a list of thought-stopping cliches if only for that reason (though not the correct and complete version you provide).
Google's Ngram viewer shows usage beginning in the 1930s: <https://books.google.com/ngrams/graph?content=fe>.
Application to police from The Nation in 1956:
<https://www.google.com/books/edition/The_Nation/Ay8QAAAAIAAJ...>