When somebody reports a crime, generally speaking, the police investigate and prepare a report that is reviewed by a prosecutor, and the prosecutor decides whether or not to authorize charges. There's nothing you can do to stop a prosecutor from authorizing charges in a case where it appears to a prosecutor both that a crime was committed and that the defendant committed the crime.

If it turns out that the charge was based upon a false police report, the prosecutor may decide to pursue charges against the person who made the report - that's enough of a disincentive for most people who might otherwise make false reports.