Let $f(x) = \left(x-5\right)\!\left(x^{2}-3\right)$. Find all the values of $x$ for which $f'(x) = 0$.