In fact most dog trainers specifically tell you not to punish dogs for peeing on the carpet. Firstly the dog didn't know it was wrong. Secondly if your dog pees on the carpet before being trained not to it's your fault, not the puppy's. Dogs don't spontaneously learn to go outside. You have to take them outside, encourage/reward them when they do pee outside and gradually teach them that outside is acceptable while inside is not.
It's called taking responsibility. The Adam and Eve story is a massive case of God not taking responsibility for the mess he allowed to happen. It's exactly like the incompetent/abusive dog owner rubbing the dogs nose in it thinking that this teaches them something.
Besides, **** free will. If God is omnipotent he knew damn well that Satan was busy tempting Adam and Eve yet he did nothing. That is the same as watching a car pull up next to your five year old and letting the driver offer them sweets safe in the knowledge that you told your kids not to take sweets from strangers and if they get abducted it was their fault. No responsible parent would ever do that. Any sensible parent would chase off the car, call the police and then explain to the kids again why they can't talk to strangers.
Without knowledge of good and evil Adam and Eve were as innocent and naive as children. To expect them to understand that they had to obey God's orders with no more concept of right and wrong than a child was unreasonable. To apply a punishment that applied beyond them is ridiculous. It's like punishing the next litter of puppies even before any of them pees.