To answer this question you first have to define what democracy is.
A decent definition is probably something like, a system of government in which policy is decided by having a public debate in which anyone can participate and then, after everyone has had a chance to say their piece, policy is chosen through voting.
From this you immediately run into potential problems. For example, suppose the majority is quite fond of the current leadership and wants to put them in power forever and stop holding elections. Is that democratic? It's the policy people are voting for. And yet, it would be the end of democracy, so the answer has to be no.
From this we discern that in order to have a democracy, there have to be certain things the government is never allowed to do, even if they're what the majority wants. You can't cancel elections, censor the opposition, throw people in jail without due process, etc. These types of things are inherently undemocratic, regardless of what the majority wants, because if the government does them you no longer have a democracy.
It should go without saying that the government can never do these things to "save democracy" because they are the very things that destroy it.