Our aro gets invasive lizards & frogs from the garden; adores 'em, good "enrichment" & so far so good for health & colour. Native anoles do carry parasites specific to mammals (cats/mongoose) so there's some risk, but unlikely to transfer to a fish.
Also bugs from the windowsill.
As with window-bugs, but particularly amphibians including newts/salamanders have capacity to be incredibly toxic.
Google & get a good ID on anything before feeding. Bright colour is an indicator, but by no means adequate "tell".
An unhappy red eft may just kill your whole tank before you can swap the water. Same/similar toxin to pufferfish, but on/through the skin.
Also, depending on where you are some of the amphibians may be endangered, so get a good ID.
Anything fish-based I try to freeze before feeding to make sure they're free of parasites, even the swordtails from our own pond.