Boris Johnson’s government is threatening to breach international law. It could backfire spectacularly