N42 and N52 are neodymium magnet grades that describe magnetic energy density, not overall quality.
In practice, an N52 magnet is about 20–25% stronger than an N42 magnet of the same size, but this difference is not always necessary for everyday applications.