So Boerd said
Full disclosure, God in the old testament was Jesus.Let me adopt a different tactic. Let's say you have an 8 year old child. What do you tell them about fire? Don't play with fire of course. Does that mean you can't tell them when they can use fire? Of course not. God is omniscient and knows when it is acceptable to kill. And who does God tell? He almost always tells His prophet, and if anyone kills without permission, they are punished. See: Cain. Cain played with fire.
Except that God created all the problems that exist in the universe. Every single one. He created rape, he created murder, he created sin, and the compulsions to commit those acts. He created all of these things, every, single, last, one, by posing an impossible test: Creating two creatures without knowledge, one before the other, giving them eternity in paradise, and then telling them to not eat from a tree, which he made easily within their reach, with very appealing looking fruit by all accounts, right in the middle of the fucking garden they lived in.
Then, as if that wasn't enough to create a test which would invariable fail (totally ignorant creature + curiosity = eventual failure to obey authority figure, given eternity, that makes it assured of success), he
created Satan, the talking snake, who easily fooled the completely ignorant, completely naive, completely defenseless creatures.
If he is omnipotent and omniscient, and created the universe and everything within it, including the laws by which it is governed, and human nature, then God created the very evil he condemns in mankind, and he is not a God worth worshiping by any stretch of the imagination. This is exactly like leaving an ignorant child in a room with a cookie jar. Then leaving someone in that room to tempt them to eat from the cookie jar. For an eternity. And when they eventually succumb being naive and foolish, you burst into the room and eternally curse them with aging and sickness and severe flaws of character and damn them to eternal hellfire if they don't praise you enough.
This is pretty much the very definition of Stockholm Syndrome.
So the idea that God would ever create a situation where it is acceptable to kill someone else he created... Is complete nonsense. It should never be acceptable for a loving creator God, but fact of the matter is, the Bible paints it pretty clearly: He's not a loving God, or a forgiving one. He's an abusive tyrant with an ego to match his unlimited power.
EDIT
Hmm. That came off more harsh than I originally intended. My apologies.