The answer is that you cannot sue yourself in a criminal court, due to self-incrimination. BUT, you could sue yourself in a CIVIL lawsuit.
Can you sue God?
By suing God, he hoped to make a political statement: That a court should be required to hear a case, no matter how frivolous it might be. “The Constitution requires that the courthouse doors be open,” he said, “so you cannot prohibit the filing of suits. Anyone can sue anyone they choose, even God.”
Can you sue yourself for defamation?
Apparently you can, but a Kings County judge won't allow you to sue someone for it. In doing so, the court noted that other courts, including Federal courts, have recognized a claim for self-defamation. ...