Powering a laser pointer using an adapter?

The Laser is probably not rated to run continually and that's why it dies. I have a pen laser that runs off 2x AAA batteries but the instructions say don't power for more than 10 seconds at a time else diode will overheat and life is shortened.