Magnetohydrodynamic stabilization of an axisymmetric mirror plasma with a magnetic divertor is studied. An equation is found for the flute modes, which includes the stabilizing influence of ion temperature anisotropy and nonparaxial magnetic fields, as well as a finite ion Larmor radius. It is shown that if the density profile is sufficiently gentle, then the nonparaxial configuration can stabilize all modes as long as ion temperature is radially uniform. This can be demonstrated even when the density vanishes on the separatrix and even for small ion Larmor radii. It is found, however, that the ion temperature gradient makes the unstable region wider; high ion temperature is required to stabilize the flute mode.