The result the demigods award to living beings correspond exactly to the living beings actions.
“The words chāyeva karma-sacivāḥ are significant here. Chāyā means “shadow.” The shadow of the body precisely follows the movements of the body. The shadow has no power to move in a way different from the movement of the body. Similarly, as stated here, bhajanti ye yathā devān devā api tathaiva tān: the results the demigods award to living beings correspond exactly to the living beings’ actions. The demigods are empowered by the Lord to follow precisely the particular karma of a living entity in awarding him happiness and distress. Just as a shadow cannot move independently, the demigods cannot punish or reward a living being independently. Although the demigods are millions of times more powerful than the human beings on earth, they are ultimately tiny servants of God whom the Lord allows to play as the controllers of the universe. In the Fourth Canto of Śrīmad-Bhāgavatam, Pṛthu Mahārāja, an empowered incarnation of the Lord, states that even the demigods are subject to punishment by the Lord if they deviate from His laws. On the other hand, devotees of the Lord such as Nārada Muni, by their potent preaching, can interfere in the karma of a living being by persuading him to give up his fruitive activity and mental speculation and surrender to the Supreme Personality of Godhead. In material existence, one works hard under the bondage of ignorance. But if one becomes enlightened by association with a pure devotee of the Lord, one can understand one’s actual position as an eternal servant of God. By rendering such service, one dissolves his attachment to the material world and the reactions of his previous activities, and as a surrendered soul he is endowed with unlimited spiritual freedom in the service of the Lord. In this regard, the Brahma-saṁhitā (5.54) states:
yas tv indragopam athavendram aho sva-karma-bandhānurūpa-phala-bhājanam ātanoti
karmāṇi nirdahati kintu ca bhakti-bhājāṁ govindam ādi-puruṣaṁ tam ahaṁ bhajāmi
“I adore the primeval Lord, Govinda, who burns to the root all the fruitive activities of those imbued with devotion. For those who walk the path of work — no less for Indra, king of the demigods, than for the tiny insect indragopa — He impartially ordains the due enjoyments of the fruits of activities in accordance with the chain of works previously performed.” Even the demigods are bound to the laws of karma, whereas a pure devotee of the Lord, having completely given up the desire for material enjoyment, successfully burns to ashes all traces of karma.”
Source: A.C. Bhaktivedanta Swami Prabhupada (2014 edition), “Srimad Bhagavatam”, Eleventh Canto, Chapter 02 – Text 06.