if there are not well functioning democratic institutions in a situation can go seriously wrong
If there are not well functioning democratic institutions in such a situation, things can go seriously wrong.
If there are not well functioning democratic institutions in a situation, can go seriously wrong.