If they haven’t swarmed already, the only sure way to prevent them from swarming would be to find the Queen and pull her with a few frames to make a split. I’d also recommend tearing down all but 3-4 (max) of the swarm cells. This will limit the likelihood of virgin afterswarms.