A lot of things can go wrong when you knock on your engine, which is also called pinging. When the air-fuel mixture isn't right, the fuel will burn in different places instead of all at once, which makes the sound. There is a risk that if you don't do anything about it, it will damage your cylinder wall and your piston.