Since non-real roots occur in conjugate pairs, number of real roots can either be $1$, $3$ or $5$. Assume, on the contrary, that all roots are real, i.e, $5$ real roots.
Let $\{\alpha_{i}\}_{i=1}^5$ be the roots of the equation.
By Vieta's Formula,
$ \displaystyle -a_1= \sum_{i=1}^5 \alpha_{i} $ and $a_2 = \displaystyle \sum_{i < j} \alpha_{i}\alpha_{j}$
Now, using the given condition, we have,
$2\left(\displaystyle\sum_{i=1}^5 \alpha_{i}\right)^2 - 5\displaystyle\sum_{i < j} \alpha_{i}\alpha_{j} < 0$
$\implies 2\displaystyle \sum_{i=1}^5 \alpha^2_{i} < \displaystyle\sum_{i < j} \alpha_{i}\alpha_{j}$
However, by power-mean inequality $$\displaystyle \frac{1}{5} \sum_{i=1}^5 \alpha^2_{i} \geq \left(\displaystyle \frac{1}{5} \sum_{i=1}^5 \alpha_{i}\right)^2$$
$\implies 2\displaystyle \sum_{i=1}^5 \alpha^2_{i} \geq \displaystyle\sum_{i < j} \alpha_{i}\alpha_{j}$
Contradiction.
$\therefore$ The largest number of real roots is $3$