I was a straight 'A" student. Here is what I did. I made good grades a priority. I was called names and teased. That is just your jealous friends and enemies alike trying to sabotage you. You will need to be focused and ignore them and leave even when they are hassling you to make sure that good grades are done before you socialize.
Study smart not hard. The minutes prior to a test should be spent reviewing all information. This is critical. Yes, you can study the night before and the weeks prior; but it is vital that the minutes right before the test that you are reviewing and studying the material. I used to 'ace' many tests just by studying in the hours up to the test because the information was still fresh in my mind. The best way was for me to study the night prior and then spend an hour or more (sometimes less truthfully) reviewing everything right before the test.