You answer the question truthfully. If you are caught lying, your naturalisation can be declared invalid.
So if you have ever been charged but not gone to court, you tell them. Even when you were completely innocent. Actually, especially if you were completely innocent. You will be asked what exactly happened and base their decision on that.
If you lie, and they find out (and they will, most likely), it’s game over. For example, they can ask the police if your old country for all information they have about you. And that information could include “was charged with murder and released when we found the real murderer”. The facts are no problem, but if you lie, that is a problem.
And look at the document that Traveller linked to. For example, a previous jail sentence may be just fine as far as naturalisation is concerned, but not disclosing it (and it will be found out) will stop your naturalisation now and for the next ten years.