わりかけるなら
owarikakerunara

Ichidan Verb

The "-nara" conditional form ("if/when…") of 終わりかける

1. If about to end; When about to end

Nara Conditional