It is preventative, helping people to avoid mistakes that can lead to more serious legal problems and the need for representation in the future.
People are capable of making mistakes that can lead to serious legal problems.
You let one alien nation move into your trade bloc, and pretty soon the whole neighborhood goes downhill.