"The unrestrained wander about the world disguised as the well-restrained."
(p. 104 Buddhist Ethics, by Hammalawa Saddhatissa quoted from Samyuttanikaya)
"A fool is not company. The solitary walk is more worthwhile; a fool is no companion."
(p. 105 Buddhist Ethics, quoting 3 different place, including Dhammapada)
"Let no one neglect his own good for the sake of another's, however great. Let it be that, having understood the ideal, he engages himself in it."
(p. 115 Buddhist Ethics, quoting the Dhammapada)
The above quotes suggest not associating with others, not doing things for others. The Buddha of course thought the middle way was important. So we should probably walk between spiritual isolationism and spiritual gregariousness, between altruism and egoism.
In the end you can quote to justify anything, but judgement and common sense are to be your guide. Reflecting on behavior, ethics with others is important on the path to enlightenment. The path of ethics, meditation and insight starts with ethics. Getting one's house in order leads to the gladdening. To stop hurting others is a noble quest. It calls for groundedness and compassion, imagination about others experience.