The former director of public prosecutions has told Sky News that Boris Johnson could go to prison if he refuses to delay Brexit in the face of court action.