HELP! limit switch

either way it didn’t work swapped them the machine still went back and didn’t stop