I'm afraid I cannot answer that, what a very good question I hadn't thought of. I believe you might be right, PWM-ing a 50mW laser to average 5mW is probably unsafe! Good catch.
There are PLENTY of extremely cheap 5mW diodes out there, for example the Osram PLT5 450B, which is 100mW max, could...