The problem is that people aren't taking the precautionary measures seriously. People are still going out even though they aren't allowed because of the risk of contracting and spreading the virus. If government are less lenient to people like this and rule as an embodiment of law then they might discipline this people.
Yes, you are right, many people still underestimate all of this.
I think warning is not enough to convince and discipline such people, there must be firm action to bring society into discipline.
Martial law? Or maybe what they are doing in India?
https://www.dw.com/en/india-police-under-fire-for-using-violence-to-enforce-coronavirus-lockdown/a-52946717You see them walking around town? Beat them with a stick! What if they're going to a pharmacy, or need to get food for a small child? Doesn't matter, beat them with a stick! No walking around!

I think you are too extreme to interpret "discipline". Also, it's not about people who go out to meet their needs, but, it's about some people who are still doing crowding activities. Sounds strange indeed, but, in some countries that still have a low rate of infection cases, some people still do crowding activities such as wedding party etc. (at least, that's what happened in my town).