It wouldn’t be dangerous at all to do that. They can be dangerous because the cells are unprotected, so if you short the ends together with something a lot more conductive than your fingers (eg metal) the cell will very quickly overheat and possibly catch fire, since there’s no protection circuit to detect and cut off current when a short is detected.