Let $\mathcal T$ denote the $\sigma$-algebra which satisfies, by Kolmogorov’s zero–one law, $\mathbb P(A)\in\{0,1\}$ for any $A\in\mathcal T$.
If $X$ is a random variable measurable with respect to $\mathcal T$, then one has, for any $n\in\mathbb Z$, $\{X\in[n,n+1]\}\in\mathcal T$, so that $\mathbb P\{X\in[n,n+1]\}\in\{0,1\}$. But since $\bigcup_{n\in\mathbb Z}\{X\in[n,n+1]\}$ is the whole state space, it must be the case that $\mathbb P\{X\in[n,n+1]\}=1$ for at least one $n\in\mathbb Z$.
Now cut that particular interval $[n,n+1]$ in two halves, $[n,n+1/2]$ and $[n+1/2,n]$. By a similar argument as above, one has either $\mathbb P\{X\in[n,n+1/2]\}=1$ or $\mathbb P\{X\in[n+1/2,n]\}=1$ (or possibly both, but that is not important for the argument). Take the interval for which the probability is $1$, cut it in half again, and choose the half for which the probability of $X$ falling into it is $1$. And so forth, keep cutting in half. Then, use Cantor’s intersection theorem to conclude that the intersection of these ever smaller nested intervals is a singleton: $\{c\}$ for some $c\in\mathbb R$. Complete the proof by showing that $\mathbb P(X=c)=1$ (use that probability measures are continuous from above).