If you ever get muscle cramps whilst doing an activity which puts you into danger – like swimming, cycling or driving – get yourself to a safe place as quickly as possible and call for help if you need to.
Image by Slitterfin (Own work) [CC-BY-SA-3.0 or GFDL], via Wikimedia Commons