The most important rule that you must set in place is that you and your ex can never share a bed if you are living together after a breakup. Sleeping on the same bed will definitely lead to cuddling and eventually sex. Even sleeping in the same bedroom can be risky because there will be virtually no privacy.