Your friend is not one who encourages you to come down to your lowest level, encourages you to do foolish things along with him or fall into bad ways with him, or one who commends you for all the nasty things you do, that is quite clear…
We do not like the company of someone who has a contagious disease, and avoid him carefully; generally he is segregated so that it does not spread. But the contagion of vice and bad behaviour, the contagion of depravity, falsehood and what is base, is infinitely more dangerous than the contagion of any disease, and this is what must be very carefully avoided. You must consider as your best friend the one who tells you that he does not wish to participate in any bad or ugly act, the one who gives you courage to resist low temptations; he is a friend. He is the one you must associate with and not someone with whom you have fun and who strengthens your evil propensities. That is all.