That's exactly how God wanted them to live in order for Him to have protected from their enemies; however, they have chosen to rebel against God. As Christians, we have to live a God-fearing life in the sense that because we love Him so much, we don't want to do anything that can hurt Him.