If you knowingly made false statements in your pleadings, yes, you can be criminally prosecuted. If your lawsuit is deemed to have no merit, but you did not knowingly make false statements in the pleadings, you can be held civilly liable for the costs of the actions but not criminally liable.
Chat with our AI personalities