If the universe ends, what would be at the edges to mark the boundary?
The Universe won't have a boundary.
Assuming that the universe is finite, it would be closed like the inside of a ball. So, there would be no boundary. In principle, if you keep travelling in the same direction you would eventually return to where you started.