I don't think the quote is advocating cutting out people who are going through a negative time, just those who are negative to YOU.
There's a difference between supporting someone through their difficulty and someone who is not supporting you, whether that means (consciously or unconsciously) belittling, undermining, or dismissing you or your ideas, or just not meshing well or productively with you.
There's a difference between supporting someone through their difficulty and someone who is not supporting you, whether that means (consciously or unconsciously) belittling, undermining, or dismissing you or your ideas, or just not meshing well or productively with you.