I don't know of people who have gotten it while traveling to these dive destinations. Myself, I have always taken malaria prophylaxis medication, and also taken the other usual precautions: long sleeves and long pants, repellents, and, where possible, avoiding the outdoors at dawn and dusk.
The Center for Disease Control (CDC) in the US has a good guide to malaria prophylaxis medications. Just Google "Malaria Prophylaxis".
This is what I learned from prepping for prior land-based dive trips to PNG and Raja Ampat. At least for me, Malarone was what I took and I didn't experience any side effects. Doxycycline is supposed to be effective but it supposedly increases sensitivity to sun exposure - making it a bit ironic that you'd hope for rain while on a dive vacation in the tropics (just joking). Lastly, what I learned was to avoid Lariam - it is purported to have side effects that resemble those of decompression sickness.
Back in the good ol' days when I had a "Cadillac" health plan here in the US, I could go to the local hospital's Travel Clinic, get a consultation based on where I was traveling to, and get a prescription - all of that, without paying thru the nose and also leaving three pints of blood and maybe a couple of toes.....but I digress. Perhaps there is such a clinic where you live, and as almost everyone else has suggested, it would be best to consult with a medical professional.