Indeed, not only “an accidental conversation” but an intentional one would fall outside the statute’s scope unless the U.S. citizen’s intent was to affect a foreign government’s policy in a concrete way. Thus, former basketball star Dennis Rodman most likely did not violate the statute when he traveled to North Korea and met with that country’s leader in an effort to promote “peace and love.”
https://www.lawfaremedia.org/article/logan-act-and-its-limits