We may think of $\bigcap_{m}A_m$ as an $A$-module. It is clear that $A\subset \bigcap_{m}A_m$ is an $A$-submodule of $\bigcap_{m}A_m$. Our aim is to show that the $A$-module $M=\frac{(\bigcap_mA_m)}{A}$ is zero. This would establish what we want to prove.
From local-to-global principles, it suffices to show that $M_n$ is zero for every maximal ideal $n\subset A$.
So, lets compute, $$ M_n=\left(\frac{\bigcap_mA_m}{A}\right)_n=\frac{(\cap_mA_m)_n}{A_n}.$$
Notice that the last equality follows from the fact that localization commutes with quotients (which is true as localization is exact functor).
Now, it is clear that $(\bigcap_mA_m)_n\subset\bigcap_m (A_m)_n$, Hence, $\frac{(\bigcap_mA_m)_n}{A_n}\subset \frac{\bigcap_m (A_m)_n}{A_n}= \frac{\bigcap_m (A_n)_m}{A_n}$ (we have changed the order of localization). Now, $\bigcap_m (A_n)_m\subset (A_n)_n=A_n$, and so $ \frac{\bigcap_m (A_n)_m}{A_n}\subset \frac{A_n}{A_n}=0$.
Combining all these containement, we conclude that $M_n\subset \frac{(\cap_mA_m)_n}{A_n} \subset \frac{A_n}{A_n}=0$. That is, $M_n=0$ for every maximal ideal $n$, hence it is the zero $A$-module and so $A=\bigcap_m A_m$.