Is this statement true?
Between any two consecutive powers of $5$, there are either two or three powers of $2$.
I can see that this statement is true for cases like $$5^1 < 2^3 < 2^4 < 5^2$$ or $$5^3 < 2^7 < 2^8 < 2^9 < 5^4$$
But I am having a trouble figuring out the proof through generalization.
Could somebody help me?

We can see mathematically that there is a ratio between the number of powers of $2$ and the number of powers of $5$ below a certain integer $a$.
Intuitively, the ratio would be $\log_25$, or $2.32$. On average, for every power of $5$, you get $2.32$ powers of $2$. That would translate to about $2$ or $3$ powers of $2$ between every two powers of $5$.
If this isn't completely intuitive, notice that there are exactly $3$ more powers of $2$ than $8$, as $\log_28 = 3$. For example, out of all integers below $100$, there are $6$ powers of $2$ ($2,4,8,16,32,64$) and $2$ powers of $8$ ($8,64$).
We can extend to this to any integers $x$ and $y$, provided they are not $0$ or $1$: For all integers below an integer $z$, the ratio of the number of exponents of $a$ to the number of exponents of $b$ is $\log_ab$.