Temperature dependences of quantum-dot laser thresholds under simultaneously three-state or two-state lasing operations