Those who walked on the motorway were "reckless, unlawful and extremely irresponsible", police say.