Beijing concludes it cannot afford to have an unstable criminal state on its doorstep – but the current elections are neither free nor fair