There should be collision warning for the map border and any ship that still moves into the border should instantly come to a halt, just as if would have hit land, dead simple.
This silly border sliding is currently my most hated feature of the game. Often enough it does not seem like accidentally hitting the border but like people actively abusing it.