You have a right to perform your prescribed duty, but not to the fruits of action. Never consider yourself the cause of the results of your activities, and never be attached to not doing your duty.
The heart of the Gita's teaching on detachment. You have every right to act and to try. What you let go of is the demand that the result turn out your way.
Read 2.47 with the SanskritTherefore without attachment, do thou always perform action which should be done; for by performing action without attachment man reaches the Supreme.
Do the work that needs doing, without clinging. Krishna does not say do less. He says act fully and hold the outcome lightly.
Read 3.19 with the SanskritHe who does actions, offering them to Brahman, and abandoning attachment, is not tainted by sin, just as a lotus-leaf is not tainted by water.
A lotus leaf sits in water but stays dry. You can live in the middle of work, family and people without every event soaking into you.
Read 5.10 with the SanskritHe whose mind is not shaken by adversity, who does not hanker after pleasures, and is free from attachment, fear and anger, is called a sage of steady wisdom.
A person of steady wisdom is not crushed by trouble or hungry for every pleasure, and is free of attachment, fear and anger. These four usually travel together.
Read 2.56 with the Sanskrit