Net or Cage
separate varieties by distance; this is primarily a function of the size and vigor of the crop.
You need to separate varieties by time. This is primarily a function of the length of the flowering period for each variety.
Netting the entire plant will help keep insects like bees away from your cucurbits and thus prevent cross-pollination.