Let's study the function $f(x)=nx-x^n$ for $x>0$. $f'(x)=n(1-x^{n-1})$ so there is a global maximum in $1$. The function is monotonic increasing in $[0,1]$ and decreasing in $[1,\infty]$. The function attains twice the same value $a$ if and only if $a\in [0,n-1]$, that is $x\in [0,\sqrt[n-1]{n}]$. So for any such $x_1,x_2$ we have in fact $$|x_1-x_2|\leq\sqrt[n-1]{n}\leq 2\leq \frac{a}{n-1}+2.$$
Equality case: we must have $a=0$ and $2^{n-1}=n$, that is $n=1,2$. For $n=1$ $f(x)=0$ identically (and the text doesn't really make sense), so we might want to suppose $n\geq 2$ from the beginning, and for $n=2$ we have $f(x)=2x-x^2$: here $x_1=0$ and $x_2=1$ give us equality. In all other cases we have strict inequality.