"Your job is not safe" does not mean you should do everything possible to keep your job -- allowing yourself to be unfairly exploited and abused.
It means that you need to be responsible for yourself, and not allow thoughts like "I'm a valuable employee", or "I have too much seniority", or "my manager and I get along great" to convince you management won't lay you off or fire you or that they owe you anything.
As others have said, the employer-employee relationship is first and foremost a business relationship, i.e. transactional: you work and they pay you. When that relationship doesn't work any more for one side or the other, it ends.
It does often happen, of course, that professional friendships or even personal friendships develop. You are, after all, spending a lot of time with your co-workers. But don't think your good relationships or friendships will help if the business decides a layoff is necessary.
It means that you need to be responsible for yourself, and not allow thoughts like "I'm a valuable employee", or "I have too much seniority", or "my manager and I get along great" to convince you management won't lay you off or fire you or that they owe you anything.
As others have said, the employer-employee relationship is first and foremost a business relationship, i.e. transactional: you work and they pay you. When that relationship doesn't work any more for one side or the other, it ends.
It does often happen, of course, that professional friendships or even personal friendships develop. You are, after all, spending a lot of time with your co-workers. But don't think your good relationships or friendships will help if the business decides a layoff is necessary.