The result holds as soon as $\|f\|_\infty$ is positive and finite.
To prove this, assume without loss of generality that $f\geqslant0$ almost everywhere and $\|f\|_\infty=1$. Then $0\leqslant f^{n+1}\leqslant f^n$ almost everywhere hence $0\leqslant a_{n+1}\leqslant a_n$. Since $a_{n}\ne0$, this yields
$$
\limsup\limits_{n\to\infty}\ a_{n+1}/a_n\leqslant1.
$$
In the other direction, note that for every positive $u\lt v\lt1$, $A=[f\geqslant u]$ and $B=[f\geqslant v]$ both have positive measure, and that, for every $n\geqslant0$,
$$
a_n\geqslant\int_Bf^n\geqslant v^n\mu(B).
$$
Hence,
$$
a_{n+1}\geqslant u\int_A f^n=ua_n-u\int_{X\setminus A}f^n\geqslant ua_n-\mu(X\setminus A)u^n,
$$
where the first inequality comes from the fact that $f^{n+1}\geqslant uf^n$ on $A$ and $f^{n+1}\geqslant 0$ everywhere, and the second inequality comes from the fact that $f^n\lt u^n$ on $X\setminus A$.
Together, these two lower bounds on $a_n$ and $a_{n+1}$ yield
$$
\frac{a_{n+1}}{a_n}\geqslant u-\frac{\mu(X\setminus A)}{\mu(B)}\left(\frac{u}v\right)^n.
$$
Since $u\lt v$ and $\mu(X\setminus A)$ is finite,
$\liminf\limits_{n\to\infty}\ a_{n+1}/a_n\geqslant u$. This holds
for every $u\lt1$, hence
$$
\lim\limits_{n\to\infty}\ a_{n+1}/a_n=1.
$$