The law also protects you from harming yourself.
Wether it be by denying you freedom to do so (e.g. forcibly institutionalize some one for attempting to commit suicide or when they declare their intent to harm them selves) or by suing you for damages you cause to yourself (e.g. If you ram your car into a wall and only hurt yourself you will be tried for that in many countries).