I'm not sure this method can work to prove 3|$n^3-n$?
by let we have polynomial congruence
$n^3-n\equiv 0(mod3)$
then if all residue class mod 3 are the roots of congruence 3|$n^3-n$
the residue for mod 3 are 0,1,2
then I plug each of them in congruence
start by 0
$0-0\equiv 0(mod3)$ congruence
then 1
$1-1\equiv 0(mod3)$ congruence
and 2
$8-2\equiv 0(mod3)$ congruence
then concluded 3|$n^3-n$
Does it work ?
You can justify that the problem is reduced to remainders modulo $3$ like this:
Let $n=3q+r$ with $r\in\{0,1,2\}$ then
$n^3-n=(3q+r)^3-(3q+r)=27q^3+27q^2r+9qr^2+r^3-3q-r\equiv r^3-r\pmod 3$
Then your method of evaluating the value for each $r$ is fine, and you get the conclusion it works for all integers.