International law even more so. For national laws, there are enforcement mechanisms. If you break a national law, there is a court deciding on punishment and an executive punishing you according to that decision. With international law, there might be a court, but often there isn't even a court. Sometimes there is the UN general assembly, UN security council or a similar body deciding on a political basis whether some violation might have occured. Usually those kinds of decisions are far from impartial, not even pretending any kind of neutrality or fairness.
So even if some international court or some council arrives at a decision that a violation of international law has occured, where is the executive? There isn't one. There is only the equivalent of old wild west dead-or-alive bounties: The decision is an authorization to go to economic war (like in sanctions or blockades) or shooting war. There might be states interested in doing that, but generally only if they think they can win and profit.
So international law is only ever enforced against powerless states without a coalition supporting them. For any larger power, there is no actual international law.