Yoga Sutras 3.52
Patanjali, explained by Swami Vivekananda
स्थान्युपनिमन्त्रणे सङ्गस्मयाकरणं पुनरनिष्टप्रसङ्गात् ॥
sthānyupanimantraṇe saṅgasmayākaraṇaṃ punaraniṣṭaprasaṅgāt
The Yogi should not feel allured or flattered by the overtures of celestial beings for fear of evil again.
In plain words: The yogi should not feel tempted or flattered when heavenly beings invite him to enjoy their rewards. Giving in would bring suffering back again.
Swami Vivekananda explains
There are other dangers too; gods and other beings come to tempt the Yogi. They do not want anyone to be perfectly free. They are jealous, just as we are, and worse than us sometimes. They are very much afraid of losing their places. Those Yogis who do not reach perfection die and become gods; leaving the direct road they go into one of the side streets, and get these powers. Then, again, they have to be born. But he who is strong enough to withstand these temptations and go straight to the goal, becomes free.