The quote has a large almost universally agreed meaning of “You should be cautious of the company you keep. Associating with those of low reputation may not only lower your own but also lead you astray by the faulty assumptions, premises and data of the unscrupulous.