This sentence means: unless necessary
It is necessary to do something unnecessary. . It's almost the same as unless it's necessary.
I won't lend you the necessary money
She has told Joe that they can get married this year if they want to; At the same time, unless necessary, there is no need to get married in advance.
If you have any questions, please ask me online. Thank you.