I am a good student, and I don't associate with bad students. or I am a good student, and I don't follow bad examples of bad students.
 associate with somebody; get involved with somebody follow bad examples指跟很多壞人一起做壞事. 指學別人做壞事.
The army painted the rebels into a crner, leaving them no choice but to fight.