It is from legal separation. Any marital act nulifies the separation.

That can include you cooking him dinner! That is a marital act in the eyes of NY state.