The right way to think of marriage for government purposes is a contract. If someone has entered in this contract, they get certain benefits. If the benefits are properly designed, they are valid only for the duration of the contract. As long as both people were abiding by the terms of the contract, it’s not fraud.