Here Krishna gives a direct command. Do your prescribed duty. Niyatam means the work that is naturally yours based on your situation and responsibilities. For Arjuna, that duty is to fight. For each of us, it is whatever our life demands of us right now.
Then comes a strikingly practical argument: even keeping the body alive requires action. Eating, drinking, breathing — these are all forms of karma. Without any action at all, even basic survival is impossible. So the question is never whether to act. It is always how to act.