Most of my teachers understood this and got out of my way. The ones who didn't understand caused me no end of problems in their attempts to force me to conform to expectations I never signed off on. I was the smartest (read: just the most motivated) kid at most of the schools I went to and also among the most frequently written up, punished or suspended.
I had a reputation for getting sent to the office at least once every two weeks, inevitably due to some form of "willful disobedience", which was just me refusing to buckle to any perceived narcissism or institutional coercion foisted upon me. Authority figures either hated that they could not control me, or warmly accepted that if they just left me alone I would pass their stupid tests with flying colors.
It wasn't until my last two years of high school, when I was homeless and attending on my own cognizance, that teachers finally backed the fuck off and realized what they were dealing with. Except a single teacher. My transcripts were illegally altered by a teacher who felt that she had to "win" against me, and ultimately caused me 10 years of economic hardship after high school. I passed every class, had the highest test scores. and she still found a way to rob me of the multiple full-ride scholarship opportunities I had received for several engineering colleges, just to put a boot down on my face one last time on my way out. This was substantial enough to sue the school department over, but when you're homeless and your parents are drug addicts, you don't get these opportunities.
This is what an under-stimulated individual with no support structure looks like. And I felt the concerted institutional effort every single step of the way to push me down and grind me into submission, to teach me I was a criminal for thinking for myself. I have a much more tolerant view of many forms of criminal behavior because of this experience and that is no accident.