The sentence <em>No estén portándose mal en el salón de clases </em>is given in the imperative mood. We use this mood to tell someone to do something in a direct manner. Put another way, sentences in the imperative mood are commands. Perhaps the speaker of this sentence is a teacher that tells his/her students not to misbehave in classes.