CC Antya 2.143

mahāprabhu — kṛpā-sindhu, ke pāre bujhite?
priya bhakte daṇḍa karena dharma bujhāite
Word for word: 
mahāprabhu — Śrī Caitanya Mahāprabhu; kṛpā-sindhu — the ocean of mercy; ke pāre bujhite — who can understand; priya bhakte — unto His dear devotees; daṇḍa karena — makes chastisement; dharma bujhāite — to establish principles of religion or duty.
Translation: 
Śrī Caitanya Mahāprabhu is the ocean of mercy. Who can understand Him? When He chastises His dear devotees, He certainly does so to reestablish the principles of religion or duty.
Purport: 

Śrīla Bhaktisiddhānta Sarasvatī Ṭhākura says in this connection that Śrī Caitanya Mahāprabhu, the ocean of mercy, chastised Junior Haridāsa, although Junior Haridāsa was His dear devotee, to establish that one in the devotional line, engaged in pure devotional service, should not be a hypocrite. For a person engaged in devotional service in the renounced order, having intimate relationships with women is certainly hypocrisy. This chastisement was given to Junior Haridāsa as an example to future sahajiyās who might adopt the dress of the renounced order to imitate Rūpa Gosvāmī and other bona fide sannyāsīs but secretly have illicit connections with women. To teach such men, Śrī Caitanya Mahāprabhu chastised His dear devotee Haridāsa for a slight deviation from the regulative principles. Śrīmatī Mādhavī-devī was a highly elevated devotee; therefore approaching her to ask for some rice to serve Śrī Caitanya Mahāprabhu was certainly not very offensive. Nevertheless, just to preserve the regulative principles for the future, Śrī Caitanya Mahāprabhu enforced the hard-and-fast rule that no one in the renounced order should intimately mix with women. Had Śrī Caitanya Mahāprabhu not chastised Junior Haridāsa for this slight deviation, so-called devotees of the Lord would have exploited the example of Junior Haridāsa to continue their habit of illicit connections with women unrestrictedly. Indeed, they still preach that such behavior is allowed for a Vaiṣṇava. But it is strictly not allowed. Śrī Caitanya Mahāprabhu is the teacher of the entire world, and therefore He enforced this exemplary punishment to establish that illicit sexual connections are never allowed by Vaiṣṇava philosophy. This was His purpose in chastising Junior Haridāsa. Śrī Caitanya Mahāprabhu is in fact the most magnanimous incarnation of the Supreme Personality of Godhead, but He strictly prohibited illicit sex.