When we conjecture x causes y and perform an experiment to prove this is so, how do we rule out

When we conjecture x causes y and perform an experiment to prove this is so, how do we rule out the case that y causes x AND x and y occur at the same time? (Ch 17 and 18, watch video on nec suff cond)