And how do you prevent that?
Beats me.
You can't. Because you can't pass a law the prevents human behavior.
Before this became law, Virginians were still able to carry weapons into places that sold alcohol for on premise consumption... they just had to open carry (if you were concelaed you tucked your shirt behind the gun aka The Virginia Tuck).
That said most people that have a CCW permit guard it with extreme jealousy and are generally responsible people that don't want to lose their permit.