The difference between the root of the M18 x 1.5 thread and the crest of the 5/8 unf is 0.5mm. So that's 0.25mm wall thickness, which is too small for safety. You could make up an end on end adaptor, but that would extend the system by about 30mm minimum.
You could machine down a new reg and thread it smaller, so the adaptor has a better wall thickness. But this may effect the reg's strength.