Condition for emergence of complex eigenvalues in the Bogoliubov-de Gennes equations