I think that starting from the assumption that there was a God who told people stuff, and that this is how the things in the Bible came about is problematic, since the nature of the rules in the Bible is such that they strongly imply they're the work of Bronze Age humans, not any being as advanced as modern humans, much less an omniscient deity.
The Bible is packed full of rules and taboos, most of which don't have any of the kind of purpose you're talking about -- rules against wearing jewelry, for example, or against eating insects (other than the locust), etc. If God just told people to avoid pigs and shell-fish, that might make sense as a primitive health code of the kind you're referring to, but there were all sorts of rules that have no plausible health or social benefit. Even those two rules are of questionable value, since simply having a rule telling people to cook those things well would be just as effective, without foreclosing a useful source of nutrition. There were ancient peoples all over the world who ate pig and shellfish without any problem.
Here's a little thought experiment. Let's say you get magically transported back 3500 years or so, to a pre-Moses Israelite tribe. And let's say you can speak their language, and you want to help them out by telling them certain things, based on your advanced understanding, that they're not particularly ready to hear. So, you pose as a priestess with a line to a higher power, and you start handing down religious taboos and rules for them. Here's the question: How would we suspect, today, that those ancient people had been visited by someone so advanced?
I picture myself in that situation, and I can think of all sorts of rules I would have left them that would have been immensely helpful to them, and immensely intriguing to future historians, who'd have been puzzled by the question of how such a primitive people could have known about the things I taught. I would have started with a lesson in germ theory. With some simple myths about tiny invisible demons that infect wounds and taint food and water, and some mythologized procedures for casting those demons out, I could have cut vastly down on infection and illness. Wash your hands before every meal. Wash your hands extremely well before and after handling the wounded, the infirm, and the dead. Wash your hands very well after using the bathroom. Boil surgical instruments before use. Boil water of unknown purity before drinking it. Distill alcohol and use it to clean wounds and any area where sick people were. Keep sick people cool and well-hydrated. In instances of epidemics, quarantine the ill and wear face masks when dealing with them. Cremate the dead, far from any settled area. Dispose of refuse far from a settlement, to avoid attracting vermin. In humid areas, don't build near still water or leave standing water about, because mosquitoes can spread the "demons." Keep feces far from food and water supplies. Wash wounds well with water that's been boiled and distilled alcohol. Etc.
Even with my limited, earthly knowledge, I could leave an incredible legacy to those people, in the forms of genuinely helpful myths and taboos. And I wouldn't waste time on nonsense like warning against wearing braids in your hair, or requiring a woman to be isolated during her period. The fact that the Bible's rules are so very seldom useful, and that so many rules that would have been useful aren't mentioned, is a pretty clear indication that the rules didn't come from anyone even as knowledgeable as us today, much less someone with a higher order of intelligence.