David_Jay,
That means through this allegorical story, Moses was preparing a mind-set in Jews that ‘disobedience to God’s first law brought calamity, hence ensure obedience to the Law that is going to be given now which would only benefit you.’
Thank you very much for this really great insight you gave. This understanding through the minds of Jews help to understand other parts of the Bible too.