Be careful when squaring inequalities.
The condition is indeed $\sqrt{x^2-5x-24}>x+2$, but this translates into two different sets of conditions:
\begin{align}
\textbf{Set 1}\quad
&\begin{cases}
x^2-5x-24\ge0\\
x+2<0
\end{cases}
\\[10px]
\textbf{Set 2}\quad
&\begin{cases}
x^2-5x-24\ge0\quad (*)\\
x^2-5x-24\ge(x+2)^2\\
x+2\ge0
\end{cases}
\end{align}
(The condition marked as $(*)$ is of course redundant.)
Set 1 is for the case squaring is not possible, but of course the desired inequality holds, because the radical exists and is non negative, while the left-hand side is negative.
Set 2 is for the case we can square, because we're assuming that also the right-hand side is non negative.
Where's the problem? You made an illicit squaring; it's like from $2>-3$ deduce, by squaring, that $4>9$. The inequality $a>b$ is equivalent to $a^2>b^2$ when $a,b\ge0$; but it's not in general equivalent when $a>0$ and $b<0$ (but it's true, of course, in this case).
Set 1 can be solved in an easy way, because the quadratic has roots $8$ and $-3$, and its solution set is $x\le-3$.
Set 2 becomes
\begin{cases}
9x+28\le 0\\
x+2\ge0
\end{cases}
which of course has no solution.