This is a reference to the saying that ‘all good things must come to an end.’ It means that life is good, up until the end. The third act of a play usually concludes the story and reveals the ending, so this quote is saying that life is enjoyable, but the conclusion of it is not great.