No one denies the potential of AI to transform economies and societies, but those who know the technology best are cognisant of its dangers.