This is TRUE. However, some people stop doing bad out of the fear of MAN. This is a different fear. For example, if you were thinking about stealing something, but you decided not to because you felt you would get into trouble with police officers. But you had no thought about god, or what he thought. You had a FEAR OF MAN.
Hope this helps!