The first is to avoid making shallow remarks. When talking with colleagues, always keep in mind your own boundaries. Some small things in life can be shared with each other, and the goals and pursuits of work can also be discussed together. However, there are personal details about yourself, gossip about others and complaints about the boss. Try not to talk about them easily.
Second, do not shirk responsibility. If you screw up a project or task with him, he will take the initiative to bear the consequences instead of putting all the responsibility on you. Such a colleague, with a fair heart and clear responsibilities, can make deep friends. On the other hand, if something goes wrong, colleagues will put all the responsibility on you. Such colleagues only care about themselves, regardless of others, and have no words of fairness and justice. Avoid such people in the workplace.
Third, do not report. In the workplace, some people want to get closer to the leader, so they tell the leader about others by tattling. This kind of person, on the surface, is kind and easy to get along with and willing to listen to you, but in private, they all regard these as political capital. We should be most vigilant against such people. If we find an informer among our colleagues, we must stay away. He can report others and will betray you naturally.