So you are saying God gave the 6th commandment that says not to murder, and then the same God told them to do what he had just told them not to do. NO.
This is Yahweh
LINK
1 Cor. 10:
1 Moreover, brethren,
I would not that ye should be ignorant, how that all our fathers were under the cloud, and all passed through the sea;
2 And were all baptized unto Moses in the cloud and in the sea;
3 And did all eat the same spiritual meat;
4 And did all drink the same spiritual drink: for they drank of that spiritual Rock that followed them: and that Rock was Christ.
5 But with many of them God was not well pleased: for they were overthrown in the wilderness.
6 Now these things were our examples, to the intent we should not lust after evil things, as they also lusted.
7 Neither be ye idolaters, as
were some of them; as it is written,
The people sat down to eat and drink, and rose up to play.
8 Neither let us commit fornication, as some of them committed, and fell in one day three and twenty thousand.
9 Neither let us tempt Christ, as some of them also tempted, and were destroyed of serpents.
10 Neither murmur ye, as some of them also murmured,
and were destroyed of the destroyer.
11 Now all these things happened unto them
for ensamples: and they are written for our admonition, upon whom the ends of the world are come.
12 Wherefore let him that thinketh he standeth take heed lest he fall.
There is a perfect reason why you are so confused. Paul spells it out for those who understand He is greater than men.
Rom. 1:
21 Because that, when they knew God,
they glorified him not as God, neither were thankful; but became vain in their imaginations, and their foolish heart was darkened.
22 Professing themselves to be wise, they became fools,
You exalt yourself as the judge of God and His Word. This behavior is as old as mankind itself and He says if you want to play God, you are free to do so.
28 And even as they did not like to retain God in
their knowledge, God gave them over to a reprobate mind, to do those things which are not convenient;
Nothing new here PS.