The legal issues isn't about keeping the bike under the ebike speed limit. The legal issue is concerned with having a bike that isn't capable of exceeding the ebike speed limit.
For example, if you have an ebike capable for travelling @ 25mph under electric power/assist then that in itself...