If this were true, i.e. in an ideal legal system, frivolous lawsuits wouldn't be a problem at all.
In many actual US jurisdictions (and presumably beyond), it's such a pervasive problem that there are now explicit "anti-SLAPP" laws on the book against just that.
In many actual US jurisdictions (and presumably beyond), it's such a pervasive problem that there are now explicit "anti-SLAPP" laws on the book against just that.