I want to show that if $f:X\rightarrow\mathbb R$ is measurable and $a>1$, then $f$ is integrable iff $$\sum_{n\in\mathbb {Z}}a^n\mu(\{a^n\le\lvert f\rvert < a^{n+1}\})<\infty.$$ If we define $A_n=\{a^n\le\lvert f\rvert < a^{n+1}\}$, which are disjoint, measurable sets then of course $s_n:=\sum_{-n}^n a^k\chi_{A_k}$ are nice simple functions for all $n\in\mathbb Z$. However $f$ is not dominated by $s_n$ and $s_n$ don't converge to $f$, so I can't use the go-to convergence theorems.
This also reminds me of Borel-Cantelli from probability theory, but this is a problem from measure/integration theory.
Is there some way to derive the integrability of $f$ from the integrability of the simple functions? Or am I missing a better approach?