Paul told Timothy to enjoy being around Christians friends but be kind and careful around foolish people in order to persuade them to follow Jesus.
2 Timothy 2:
22 Run from anything that stimulates youthful lusts. Instead, pursue righteous living, faithfulness, love, and peace. Enjoy the companionship of those who call on the Lord with pure hearts.
23 Again I say, don’t get involved in foolish, ignorant arguments that only start fights. 24 A servant of the Lord must not quarrel but must be kind to everyone, be able to teach, and be patient with difficult people. 25 Gently instruct those who oppose the truth. Perhaps God will change those people’s hearts, and they will learn the truth. 26 Then they will come to their senses and escape from the devil’s trap. For they have been held captive by him to do whatever he wants.