Quinine is supposed to help. Certainly helped a friend of mine who started getting cramps a couple of years ago.
I have first hand experience of this. I couldn’t swim for an hour without getting cramps bad enough to make me stop. A bottle of tonic water got me through Ironman Wales swim. Tried it out of desperation and it worked for me. Have since trained (swimming) without it and cramped and with it and haven’t.
Don’t know if it’ll work for everyone, but it’s now on my kit list before any event. Half a bottle the night before and the other half on the morning of the race seems to see me through.
Not sure about the gin though……..