Former prime minister told that publicly provided advice will be withdrawn if he undermines the government