[guided]We now translate the set defined by nearest-integer distance into a set of fractional parts. If $y\in[0,1)$, then the nearest integer to $y$ is either $0$ or $1$ for the purpose of minimizing the distance to $\mathbb Z$, so
\begin{align*}
\|y\|_{\mathbb R/\mathbb Z}=\min\{y,1-y\}.
\end{align*}
For $y=0$, this formula still gives $0$ because $\min\{0,1\}=0$. Hence $\|y\|_{\mathbb R/\mathbb Z}<\delta$ holds exactly when either $0\le y<\delta$ or $1-\delta<y<1$. Therefore
\begin{align*}
\{y\in[0,1):\|y\|_{\mathbb R/\mathbb Z}<\delta\}=[0,\delta)\cup(1-\delta,1).
\end{align*}
We must also justify replacing $x_n$ by its fractional part. By definition, $y_n=\{x_n\}=x_n-\lfloor x_n\rfloor$, so $x_n-y_n=\lfloor x_n\rfloor\in\mathbb Z$. Distance to $\mathbb Z$ is invariant under adding or subtracting an integer, hence
\begin{align*}
\|x_n\|_{\mathbb R/\mathbb Z}=\|y_n\|_{\mathbb R/\mathbb Z}.
\end{align*}
Thus every index counted by $\|x_n\|_{\mathbb R/\mathbb Z}<\delta$ has $y_n\in[0,\delta)\cup(1-\delta,1)$. Since $(1-\delta,1)\subset[1-\delta,1)$, we obtain
\begin{align*}
\{1\le n\le N:\|x_n\|_{\mathbb R/\mathbb Z}<\delta\}\subseteq\{1\le n\le N:y_n\in[0,\delta)\cup[1-\delta,1)\}.
\end{align*}
The half-open union has already been bounded by $2\delta N+2ND_N(x_1,\dots,x_N)$ after dropping the absolute value upper side. Therefore
\begin{align*}
\#\{1\le n\le N:\|x_n\|_{\mathbb R/\mathbb Z}<\delta\}\le 2\delta N+2ND_N(x_1,\dots,x_N).
\end{align*}[/guided]