A top Beijing official overseeing Hong Kong affairs on Saturday warned of persisting threats in the city as a China-imposed national security law approaches its fifth anniversary, while seeking to allay concerns about the law’s impact on the financial hub’s openness.