Is it a violation of God's law or man's. It is definitely a violation of man's law, and technically, it's a violation of God's law also in the sense that God established governments for the benefit of man. God functions by laws for example the law of nature. Human rights and animal rights are but laws of God. You may relate to them as common sense or we may not depending on the existence of lack thereof.
Common sense varies depending on who one is dealing with and the era in which one is relating.
While it is hard for me, living in the twentieth century, to believe this, I read that anciently, man didn't know that heterosexual intercourse would likely produce a baby. Today, in the twentieth century, few if anyone would disagree with that premise because that is just common sense. As man increases in knowledge and wisdom, man is becoming like God, not only knowing right from wrong but being able to do something about it. Lest man get too conceited, swollen headed and take glory in his newly discovered powers, God will always be around to humble man and make him wake up to how infinitesimally small and totally insignificant his knowledge is. I've been assured that a cure for AIDS is very rudimentary but the knowledge is being withheld, obscured from the eyes of man's most gifted until he humbles himself and acknowledges God as the source of all knowledge and power.