Action is certainly dangerous when crushed by car tires. However, car tires are now generally tubeless so it usually can still run even with the nails are stuck deep enough.
Then, still allow the tire is used? Reporting from YourMechanics, using a tire that is still nailed is still safe during the trip only for short distances. From the position of the car to a tire repairman for example. But when used for the activity then the risk of tires will burst very large and make the driver lose control of the car.
Not only that, if the nails have been stuck for too long, the hole on the tire can widen and make it more difficult to repair. If the tire hole is not repairable, then the only way that the car can be used is to replace a broken tire with a new one.
So what should be done when you see a nail on the tire?
First, do not touch the nail. If the nail is stuck deep enough, the possibility of the nail is still able to close the hole so the air does not come out. You can still use the tire to at least to the tire repairman.
Tire repairmen will improve if conditions are still possible. But if you can not, then you should replace the tire with a new one.
When the air in the tire is up, then inevitably you have to replace the tire with a spare tire. Make sure you replace it in a safe place and install a security triangle and turn on the emergency light when doing so.