I've done some digging on the history of the phrase, and find that 1) it's been in use for at least 80 or so years (several non-produce hits in the 1940s), and 2) clearly missing the "spoils the whole barrel" element seems to begin in the 1950s, with conspicuous application to police misconduct.
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...>