Dame Judi Dench has admitted she was "naive" about how big the Bond franchise was when she took on the role of MI6 chief M.