Hint: Let $d$ be the Krull dimension of $A$. Show that $x$ is part of a set $x,x_2,\ldots,x_d\in A$ such that $(x,x_2,\ldots,x_d) = \mathfrak m$ iff $x\in \mathfrak m-\mathfrak m^2$. From this (and using the fact that there is a bijection between the maximal ideals of $A$ containing $(x)$ and the maximal ideals of $A/(x)$), you can see that $A/(x)$ is a local ring with maximal ideal $(x_2,\ldots,x_d)$, which has Krull dimension at most $d-1$ by Krull's Principal Ideal Theorem. The dimension is in fact exactly $d-1$, as if we had fewer than $d-1$ generators for $\mathfrak m/(x)$ then adjoining $x$ gives you fewer than $d$ generators for $\mathfrak m$, violating Krull's PIT. Since $\mathfrak m/(x)$ is generated by $d-1$ elements, this makes $A/(x)$.