What was Jesus's legal advice on lawsuits?

Settle the lawsuit by giving twice what you are sued for.

And if any man will sue thee at the law, and take away thy coat, let him have thy cloak also.

And whosoever shall compel thee to go a mile, go with him twain. Matthew 5:40-41