The overall result is an increase in entropy in the system comprised of the environment plus the cell. Therefore, the living cell does not violate the second law of thermodynamics. It does, however, for a while counteract and delay the effects of the second law on the organism. Ceasing to do this, the organism dies. A particularly amazing and crucial ability of cells is seen in their mechanisms for correcting or editing errors when genes are copied during cell division.
Many errors occur due to the degenerative second law effect on chemical reactions.
However, the cell can detect the errors and correct almost all of them. Thus the actual probable error rate in copying any single genetic code letter is only about one part in a billion. This is a very high degree of accuracy. Now here is a serious problem for the origin of life theories. The assumed original cells had to be primitive, very simple compared with modern, fully evolved cells.