I am struggling with this questions on Binomial Random Variable that requires to find the range of parameter $p$.
Let $X$ be a binomial random variable with parameters $(5, p)$. Find the range of $p$ for which $P\left( |X-E(X)|\le 3 \right)=1$.
Unable to use the relation $P\left( |X-E(X)|\le 3 \right)=1$.
My approach is, to assume $|X-E(X)|\le 3$ to true as probability of the same is given as $1$.

As $X$ ~ $B(5, p)$, $E[X] = 5p$
$ \displaystyle \begin{align} P(|X-E[X]| \leq 3) &= P(|X-5p| \leq 3) \\ &= P(-3 \leq X-5p \leq 3) \\ &= P(5p-3 \leq X \leq 5p+3) \\ &= 1 \end{align} $
It means that every $X$ is in $[5p-3, 5p+3]$
We know that, $X$ varies from $0$ to $5$.
Thus, we get
$ \begin{cases} 5p-3 \leq 0\\ 5p+3 \geq 5 \end{cases} $
which implies $\displaystyle\frac{2}{5} \leq p \leq \frac{3}{5}$