means that
a corrupt or disruptive person can have a damaging influence on the people around them.
also
The rotten apple spoils the barre
One dishonest employee persuaded several previously trustworthy colleagues to falsify their expenses. “The rotten apple injures its neighbours.”