It's certainly true that regulations aren't sufficient by themselves to prevent pilots from getting into dangerous situations, especially when operating IFR. Even under VFR, it's not hard to think of examples, like colliding with mountains at night, or scud-running in class G airspace.