The energy comes from the moon orbiting the earth. Theoretically speaking, taking too much energy would cause the moon to come crashing down to Earth.
I suspect that adding more drag to the tides could either boost this process or reduce it, depending on the timing of the energy harvesting.