Governments has been telling people for months not to go on vacation, that is correct, they should have thought of that before leaving.
They also gave 2 weeks notice so if you went somewhere and didn't think you could get a COVID test, there was still time to make it back home before the ban started.