There isn't any law stating that strictly (at least not that I know of) - I think you might be thinking of the conservation of energy ("Energy cannot be created or destroyed, only transferred into different forms"), which would dictate that the sum of potential energy and kinetic energy is always the same, (e.g. such that if potential energy increases by 4J, KE decreases by 4J).