IF, if you want to be completely sure simply don't get her pregnant while she lives with you, and make sure she keeps working. That way the courts will find she is able to continue to support herself once your relationship breaks down and she will not be seen to be financially dependant on you...