That may have been the theory, but it seems more likely that, inasmuch as it appeared to improve outcomes in some trials, it did so by treating parasitic infections which were concurrently present. (Which makes sense! That's its primary application, after all.)
What happens if you take Ivermectin but turns out you didn't have a parasitic infection?
Is it dangerous?
Very low risk. Ld50 is incredibly high. Side effects minimal. Adverse reactions very rare
Dangerous only to your career and only if you posted about it on social media