I would say forget the tought of teaching a lesson. Most of us as we grow see such people at school,college,hostel and at workplace. Thanks to such people, you realise what good and bad humna behaviour is.
First think of the events that triggered this behavior,
It could simply be
you have many friends in class
girls are more friendly with you
you help people often
you are good at studies
you are a favourite among teachers
you lead a life filled with happiness without worries
you are good natured
These are qualities that God doesn't give to everyone. So, the people who are opposite to you would behave like this.
Try to think about this, have you made a mistake or passed a harsh comment about them somewhere in the past. IF this is the case, then make peace with them voluntarily.
I would say, there would be common friends on both sides, please have a informal discussion and try to be friends and have an open talk over some simple dinner or an outing on a holiday. Try not to blow up simple issues and take it to heart.
If this doesn't work, try the simple approach of not reacting in a predictable way to such behavior. Try ignoring or even taking this in a easy going manner, they would be surprised and certainly change.
If this also does not help, if not then speak to the Warden, once you escalate it, you have to be careful about your personal safety as your trouble makers make take it as an offence and plan more trouble for you.
If you safety is at risk, then think about changing the place.