The rule of law and “fabric” of the nation is at risk of “unravelling” because of the level of crime on Britain’s streets, the attorney-general has said.