Consider the picture below:
We first divide the real line into the intervals $[0,T]$, $[T,2T]$,... (negative also but we assume that $C>0$ for this picture). Suppose that $C$ exists such that $f(C)>M = \sup\{f(x):0\leq x \leq T\}.$
We pick $k$ such that $C\in [kT,(k+1)T]$. This is possible since these intervals cover $\mathbf{R}$. This is precisely what the author means by letting $k = \lfloor C/T \rfloor $ that is the largest integer $k$ such that $k\leq C/T$ which implies that $k\leq C/T\leq k+1$ and therefore $C\in [kT,(k+1)T].$
Now $kT\leq C\leq (k+1)T\Rightarrow 0\leq C-kT\leq (k+1)T-kT = T$ and therefore this would imply that if we write $C' = C-kT$
$$f(C') = f(C-kT) = f(C) >M$$
However $C'\in [0,T]$ by the above inequality and therefore $f(C')\leq M$ thus we have derived a contradiction.