It can also be the opposite.
Making yourself indispensable. Being the one who shows up for people (not as in "comes in and does a lot of unpaid work", but as in "helps out when other people need it"). Giving people credit where credit is due, especially the unsung heroes.
If you are well-known around the office as the person who is honest, kind, and helpful, the next time someone else tries to take credit for your work, make you look bad, or otherwise stab you in the back, it's much less likely to work—and when that kind of thing fails, it invariably makes the person who tries it look much, much worse.