Nobody just gets up at a whim and files for a divorce. Generally one person has a made-up mind in this and the other has to either give in or go the other way, when the second person eventually comes to terms with it, there is no stopping a divorce, no matter how much of conselling or intervention is going to help it.
At that point "the earlier the better" is the answer. I have seen a couple of relationship drag through the times before reaching the forgone-conclusion of divorce. The only intervention they waited for was named as "Greencard"😉
I have seen stupid quarrels ending up in filing for divorce..
sometimes. it is better to get ridof a marriage that nobody concerned is happy with