Let $f:\mathbb{R}\to\mathbb{R}$ be a continuous increasing function such that $$\forall x\in\mathbb{R} \;f(x)\in\mathbb{Z}\implies x\in\Bbb{Z.}\quad (1)$$
I would like to prove that $\lfloor f(\lfloor x\rfloor)\rfloor=\lfloor f(x)\rfloor.$
Denote $m=\lfloor f(\lfloor x\rfloor)\rfloor$, if I am not mistaken I just need to prove that $m\le f(x)<m+1.$
I get that $m\le f(x):$ We have $\lfloor x\rfloor\le x<\lfloor x\rfloor+1$ so that $f(\lfloor x\rfloor)\le f(x)\le f(\lfloor x\rfloor+1).$ By definition of foor function we also have $m\le f(\lfloor x\rfloor)<m+1$ and therefore $$m\le f(x).$$
I need to prove that $f(x)<m+1.$ Not sur how can I do that, I didn't (yet) the fact that $f$ is continuous and the property $(1).$
Let us prove that $f(x) < m+1$. If $f(y) < m+1$ for all $y \ge x$, then we are done. Note that we can suppose that $x \notin \mathbb{Z}$, since the statement is true, if $x$ is an integer. In the other case, there exists a first $y \ge x$ with $f(y) = m+1$. The condition implies that $y =n$ for some $n \in \mathbb{N}$. Because we have assumed that $x$ is not an integer, we must have $x <n$. On the other hand $y$ was chosen minimal with $f(y) = m+1$. Thus $f(x) < f(y)= m+1$.