The fundamental problem is that there is no separation of powers between the government and the judiciary as you might find in most (all?) modern democracies. The Crown Office and Procurator Fiscal Service (COPFS) acts as the governments lawyers and the prosecution service. Most of the accusers in the trial of Alex Salmond, for which he was acquitted on all charges, are close associates of the leadership of the Scottish National Party which are currently in power in the devolved parliament. The risks are clear and obvious.