We know that it is illegal and dangerous to point a laser at aircraft. But it is also likely illegal to point a laser at spacecraft.
According to AI:
"No, it is generally illegal and dangerous to intentionally shine a laser at the International Space Station (ISS) or any orbiting spacecraft. Such actions violate federal laws regarding laser interference with aviation/spacecraft, can cause hazardous distractions to astronauts, and carry severe penalties, including heavy fines and imprisonment."