Top court says cruelty law will apply where a live-in relationship is "in the nature of marriage", with safeguards against arrest.