Any "moralistic" code of rules with the time will become obsolete and oppressive.
On top of that if this code is interpreted from a huge text that can be taken as literal or figurative depending on the intent of the interpreter, so it will be use as a way to stabilize the society and keep the status quo.