Why assume that a crappy teacher naturally gives bad grades? Those two things aren’t correlated at all. The top X% will get As unless something is very badly wrong with the school’s grading policy.
Unless you plan to do an external exam (eg AP) and even then it won’t matter since colleges in the US don’t make their offers conditional on AP scores.