expression
before it becomes; before (something undesirable) occurs
Attaches to the negative stem of a verb (ない-form) to mean 'before something happens' or 'while it is still not the case'. Often used when the following event is undesirable or should be prevented.
暗くならない内に帰りましょう。
Let's go home before it gets dark.
忘れない内にメモしておいてください。
Please make a note of it before you forget.