International law only applies when you ratify a treaty so it becomes domestic law. Thats how treaties work, they actually laws of the country hence the term ratification into domestic law. Why US doesn't violate international law on land mines and cluster bombs. US never signed that treaty.