Sharp threshold nonlinearity for maximizing the Trudinger-Moser inequalities