I was watching a movie where they stated that a general was accused of violating the Logan Act. I was wondering if someone could explain me in short what's the use of this Act. Is it to prevent terrorism? Wikipedia says no one is ever convicted based on violating this Act.