Maximal ideals in polynomial rings
You're missing a hypothesis. Questions like this are often implicitly asked not in the category of rings, but in the category of $K$-rings. In particular, a $K$-ring is a ring $R$ equipped with the extra structure of an action of $K$ on $R$ (equivalently, a homomorphism $K \to R$). A homomorphism of $K$-rings must respect this extra structure.
Without this hypothesis, we have counterexamples. $F(t)$ is an algebraic extension of $F(t^2)$ that is isomorphic to $F(t^2)$. So we have
$$ F(t)[x] / (x^2 - t) \cong F(t) $$
where the isomorphism sends $t \to t^2$ and $x \to t$.
Take the isomorphism $\varphi: k[x_1,\ldots,x_n]/\mathfrak{m} \to k$ and consider the images of $\overline{x_1}, \ldots, \overline{x_n}$: Set $a_i := \varphi(\overline{x_i})$. Since $k$ is a field, we also have that $\varphi(\overline{a_i}) = a_i$, thus $x_i - a_i \in \mathfrak{m}$.