Bewildering the conditioned souls and liberating the devotees are both functions belonging to yogamaya
SB Canto 10.1 to 10.13
The word kāryārthe refers to one who attracted the pregnancy of Devakī and bewildered mother Yaśodā. These pastimes are very confidential. The Supreme Personality of Godhead ordered yogamāyā to bewilder His associates in His pastimes and bewilder demons like Kaṁsa. As stated previously, yogamāyāṁ samādiśat. To give service to the Lord, yogamāyā appeared along with mahāmāyā. Mahāmāyā refers to yayā sammohitaṁ jagat, "one who bewilders the entire material world." From this statement it is to be understood that yogamāyā, in her partial expansion, becomes mahāmāyā and bewilders the conditioned souls. In other words, the entire creation has two divisions-transcendental, or spiritual, and material. Yogamāyā manages the spiritual world, and by her partial expansion as mahāmāyā she manages the material world. As stated in the Nārada-pañcarātra, mahāmāyā is a partial expansion of yogamāyā. The Nārada-pañcarātra clearly states that the Supreme Personality has one potency, which is sometimes described as Durgā. The Brahma-saṁhitā says, chāyeva yasya bhuvanāni bibharti durgā (Bs. 5.44). Durgā is not different from yogamāyā. When one understands Durgā properly, he is immediately liberated, for Durgā is originally the spiritual potency, hlādinī-śakti, by whose mercy one can understand the Supreme Personality of Godhead very easily. Rādhā kṛṣṇa-praṇaya-vikṛtir hlādinī-śaktir asmād (CC Adi 1.5). The mahāmāyā-śakti, however, is a covering of yogamāyā, and she is therefore called the covering potency. By this covering potency, the entire material world is bewildered (yayā sammohitaṁ jagat). In conclusion, bewildering the conditioned souls and liberating the devotees are both functions belonging to yogamāyā. Transferring the pregnancy of Devakī and keeping mother Yaśodā in deep sleep were both done by yogamāyā; mahāmāyā cannot act upon such devotees, for they are always liberated. But although it is not possible for mahāmāyā to control liberated souls or the Supreme Personality of Godhead, she did bewilder Kaṁsa. The action of yogamāyā in presenting herself before Kaṁsa was the action of mahāmāyā, not yogamāyā. Yogamāyā cannot even see or touch such polluted persons as Kaṁsa. In Caṇḍī, in the Mārkaṇḍeya Purāṇa, Eleventh Chapter, Mahāmāyā says, "During the twenty-eighth yuga in the period of Vaivasvata Manu, I shall take birth as the daughter of Yaśodā and be known as Vindhyācala-vāsinī."
The distinction between the two māyās-yogamāyā and mahā-māyā-is described as follows. Kṛṣṇa's rāsa-līlā with the gopīs and the gopīs' bewilderment in respect to their husbands, fathers-in-law and other such relatives were arrangements of yogamāyā in which mahāmāyā had no influence. The Bhāgavatam gives sufficient evidence of this when it clearly says, yogamāyām upāśritaḥ. On the other hand, there were asuras headed by Śālva and kṣatriyas like Duryodhana who were bereft of devotional service in spite of seeing Kṛṣṇa's carrier Garuḍa and the universal form, and who could not understand Kṛṣṇa to be the Supreme Personality of Godhead. This was also bewilderment, but this bewilderment was due to mahāmāyā. Therefore it is to be concluded that the māyā which drags a person from the Supreme Personality of Godhead is called jaḍamāyā, and the māyā which acts on the transcendental platform is called yogamāyā. When Nanda Mahārāja was taken away by Varuṇa, he saw Kṛṣṇa's opulence, but nonetheless he thought of Kṛṣṇa as his son. Such feelings of parental love in the spiritual world are acts of yogamāyā, not of jaḍamāyā, or mahāmāyā. This is the opinion of Śrīla Viśvanātha Cakravartī Ṭhākura.