It works for ML too. If Tesla had a set of training data that was inversed, ie the vast majority of cars were involved in a crash, it would have a fully working level 5 autonomous autopilot 2 years ago.
Its much more efficient to have the knowledge of statistically improbable but bad actions to avoid, rather to have a set of good actions where you don't know where the boundaries are.