Laws only matter if there are police equivalents to enforce it.
Have a tiny military budget? Congratulations you behave by the laws of bigger budget military countries.
Don’t like it? You can ask the UN. They will promptly condemn Israel, then demand more bribes.