See:
https://en.wikipedia.org/wiki/Logan_Act
Seldom used so don’t expect it to be now.
I dont know if the Logan Act has EVER been used.