The short answer is, you can’t. Many factors go into whether it is a good idea for you to fight charges at trial or try to negotiate the best deal you can get before trial. Those factors, of course, stem from your individual case.