All perfect praise be to Allaah, the Lord of the worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His slave and messenger.
If her students obey her, then this is what is required, but if they reject her advice, then she is not sinful because she has fulfilled her duty of advising and warning them against the wrongdoing.
Allaah Knows best.