I am trying to plot the function $(-2(\alpha-1)/\alpha)^{(-2(\alpha+2)/\alpha)}$ in maple, but I got the following warning
plot( (-2*(alpha-1)/alpha)^(-2*(alpha+2)/alpha) ,alpha=5..10);
Warning, unable to evaluate the function to numeric values in the region; complex values were detected.
Actually the function have real values as roots but maple does not plot the values.
How do I plot it?

You claim that the expression has real values as roots. However, $$ \frac {-2(a-1)}a = \frac{2(1-a)}a < 0 $$ for $a > 1$ and thus especially for $a \in [5,10]$. I am quite unconvinced that your expression is real for all values of $a\in [5,10]$ and a simple check agrees with this suspicion;
Instead, try the
complexplotcommand in theplotspackage, which hints that your expression may be complex for all values of $a\in[5,10]$.