Ravioli can fall apart when cooking if the pasta is not fresh, the water is not boiling, or the ravioli is overcooked. To prevent your ravioli from falling apart, make sure to use fresh or frozen pasta. Make sure you have salted the water and make sure the water is at a rapid boil before adding the ravioli. Boil the ravioli for 3-4 minutes if fresh, or up to 8 if frozen, but do not overboil them, or else that can make them fall apart. Once the ravioli is cooked, you can use a slotted spoon to remove it from the water or gently pour it into a colander to drain, being careful to not break apart the pasta.