Please note that the UN Charter, the Ten Commandments, and many other written documents have failed to achieve their stated objectives. Laws, regulations, customs, taboos, etc. are all regularly broken.
There is also the problem that those given enough power to actually enforce such things...