There is no harm in driving with a bad knock sensor but if your motor begins to do just that - KNOCK - or misfire, your motor has lost its ability to diagnose it self and let you know that its misfiring. You can drive it but i would get it fixed when you get the chance