Military Intelligence

Current law prohibits the military from conducting law enforcement and intelligence activities on American soil. Is this a good idea? Why or why not?