In that era, many people were forced to follow the corrupt masses just to survive.
Tips
usage
同流合污 is a strong condemnation, implying moral complicity. It goes beyond 'following the crowd' — it specifically means joining in corruption or wrongdoing. Often used in political/moral contexts.