Here's the full problem:
Suppose $A\subset E\subset B$, where $A,B$ are measurable with finite measure. Show that if $m(A)=m(B)$, then $E$ is measurable.
Here, we are dealing with measure space $(\mathbb{R},\mathcal{M},m)$. I come here just to see if this is a valid proof. Here we go:
Proof
We have that $m(A),m(B)<\infty$. Supposing $m(A)=m(B)$, we have
$$m(A)\leq m(E) \leq m(B)=m(A)$$ $$\implies m(A)=m(E)$$
Since $A$ is measurable, it follows that $E$ must then be measruable.
I know of another way to prove this, I was just wondering if this was a valid argument as well.
You assumed that $E$ is measurable when you wrote $$ m(A) \le m(E) \le m(B) $$ It's clear that if $m(E)$ is defined, then it must be equal to the common value of $m(A)$ and $m(B)$. The issue is how we know it's defined at all.