The OT God threatens into obedience. What else is new?
It is the same God, who was and is and is to come.