is it illegal to drive with a broken coil spring?
No. It is not recommended. A damaged or collapsed spring can cause sagging and noise and affect alignment angles. While you can still drive, the ride will be rough and the car will be difficult to control in an emergency.