IP 24 is possible. .... The 2 prevents objects 12 mm or larger getting to places inside the equipment where there is a hazard to them from anything, gear wheels, blades, hot surfaces etc. The 4 is to prevent water or other liquids reaching parts where the liquid could cause a problem and allows for barriers inside the equipment to deflect incoming liquids away from the parts where liquid would be a hazard.
Sensible though that may be, I don't think that the definitions of IP ratings are actually quite as 'functional' as you suggest. To the best of my knowledge, they relate simply and only to prevention of insertion of objects and ingress of water into an enclosure. I see nothing about IPx4 being satisfied if, have 'ingressed' into the enclosure through, say, an 11.5mm hole, water is deflected away from water-sensitive parts.
... or have I missed something?
The bottom line is that I would not personally want anything electrical in an IP2x enclosure anywhere near a risk of water splashes. In any event, I agree with everyone else who has pointed out that the manufacturer's instructions reign supreme in this situation, which is what matters to the OP.
Kind Regards, John