A construction machine comprising: an electric storage device; a generator motor that has a function of operating as a motor by electric power supplied from the electric storage device and a function of operating as a generator by motive power supplied from outside; an electric power control unit that controls the delivery of electric power between the electric storage device and the generator motor; a charge and discharge control unit that outputs an instruction for controlling charge and discharge electric power of the electric storage device to the electric power control unit; a temperature measuring unit that measures temperature of the electric storage device; a charge state specifying unit that specifies a state of charge of the electric storage device; and an operation state determining unit that determines whether an operation state of the construction machine is a preset high-limit operation state or a preset low-limit operation state which is other than the high-limit operation state and set in advance as an operation state where an internal resistance of the electric storage device is maintained in a lower range than that of the high-limit operation state, wherein the charge and discharge control unit sets an upper-limit charge and discharge electric power as an upper limit of the electric power during charging and discharging of the electric storage device based on the temperature of the electric storage device measured by the temperature measuring unit and the state of charge of the electric storage device specified by the charge state specifying unit, and in a case where the operation state determined by the operation state determining unit is the low-limit operation state, the charge and discharge control unit sets the upper-limit charge and discharge electric power to be larger than that in a case where the operation state determined by the operation state determining unit is the high-limit operation state, wherein the low-limit operation state is an operation state where continuous charge time or continuous discharge time of the electric storage device is shorter than that of the high-limit operation state, characterised in that the construction machine further comprises a self-propelling type lower propelling body; an upper slewing body provided on the lower propelling body so as to slew; and an attachment provided so as to be displaced with respect to the upper slewing body, and wherein the operation state determining unit determines that a working state where at least one of a slewing operation of the upper slewing body and a displacement operation of the attachment is performed is the low-limit operation state. an electric storage device; a generator motor that has a function of operating as a motor by electric power supplied from the electric storage device and a function of operating as a generator by motive power supplied from outside; an electric power control unit that controls the delivery of electric power between the electric storage device and the generator motor; a charge and discharge control unit that outputs an instruction for controlling charge and discharge electric power of the electric storage device to the electric power control unit; a temperature measuring unit that measures temperature of the electric storage device; a charge state specifying unit that specifies a state of charge of the electric storage device; and an operation state determining unit that determines whether an operation state of the construction machine is a preset high-limit operation state or a preset low-limit operation state which is other than the high-limit operation state and set in advance as an operation state where an internal resistance of the electric storage device is maintained in a lower range than that of the high-limit operation state, wherein the charge and discharge control unit sets an upper-limit charge and discharge electric power as an upper limit of the electric power during charging and discharging of the electric storage device based on the temperature of the electric storage device measured by the temperature measuring unit and the state of charge of the electric storage device specified by the charge state specifying unit, and in a case where the operation state determined by the operation state determining unit is the low-limit operation state, the charge and discharge control unit sets the upper-limit charge and discharge electric power to be larger than that in a case where the operation state determined by the operation state determining unit is the high-limit operation state, wherein the low-limit operation state is an operation state where continuous charge time or continuous discharge time of the electric storage device is shorter than that of the high-limit operation state, characterised in that the construction machine further comprises a self-propelling type lower propelling body; an upper slewing body provided on the lower propelling body so as to slew; and an attachment provided so as to be displaced with respect to the upper slewing body, and wherein the operation state determining unit determines that a working state where at least one of a slewing operation of the upper slewing body and a displacement operation of the attachment is performed is the low-limit operation state.