means that
an old superstition associates allowing spiders to live with good fortune. It is a folk belief, not a prediction of prosperity.
Imagine a case where according to which, Spiders bring good luck, so we shouldn't kill them; then “If you want ot live and thrive, let the spider tun alive” fits well.