Intertwined ferroelectricity and topological state in two-dimensional multilayer