Usage patterns
〈事〉の末期に入るto enter the final stage of something
The company had entered the final stage of financial collapse.
末期を迎えるto reach the terminal/final stage
His illness finally reached its terminal stage.
〈時〉末期the closing years of [an era/period]
Black Ships arrived in the closing years of the Edo period.