Srimad-Bhagavatam: Canto 7 - Chapter 1 - Verse 6
सुशीलो मितभुग्दक्ष: श्रद्दधानो जितेन्द्रिय: ।यावदर्थं व्यवहरेत् स्त्रीषु स्त्रीनिर्जितेषु च ॥ ६ ॥
suśīlo mita-bhug dakṣaḥśraddadhāno jitendriyaḥyāvad-arthaṁ vyavaharetstrīṣu strī-nirjiteṣu ca
A brahmacārī should be quite well-behaved and gentle and should not eat or collect more than necessary. He must always be active and expert, fully believing in the instructions of the spiritual master and the śāstra. Fully controlling his senses, he should associate only as much as necessary with women or those controlled by women.
A brahmacārī should be very careful not to mix with women or with men addicted to women. Although when he goes out to beg alms it is necessary to talk with women and with men very much attached to women, this association should be very short, and he should talk with them only about begging alms, and not more. A brahmacārī should be very careful in associating with men who are attached to women.