Suicide isn't actually illegal. Suicide is effectively illegal though because you can be locked in a psychiatric unit if you attempt it.
Suicide should be respected as a civil and human right for adults when done in private. Read the book Suicide Prohibition by psychiatrist Thomas Szasz.