UN chief warns against undermining international law