A judge has warned anyone engaging in racist behaviour on the back of the Southport stabbings can expect to be remanded in custody.