To understand the purpose of the structure, you need to pay attention to small technical details. This is a segment of Hadrian's Wall in Britain, and it is designed precisely as a one-sided stop:
Someone purposefully lifted the soil from one side to the top of the wall. For defensive purposes?! For an infantryman this is not an obstacle. As protection against cavalry? In about twenty minutes, under the cover of darkness, the adversaries will make a passage anywhere and transfer the horses.
Such structures are made to counteract the pressure of a certain force. Such a structure could have stopped the glacier creeping from the expected side.
This photo also clearly shows that Hadrian’s Wall was created precisely as a one-sided stop:
I'll add another interesting fact. There are two defensive ramparts in Britain - Hadrian's and Antonian's. From an official point of view, they were built almost simultaneously, in 122-128 and 142-154, respectively. The surprising thing is that Hadrian's Wall is perfectly preserved, but Antonian's Wall is almost completely destroyed, only its pitiful remains are visible.
Note that the ruined Antonian Wall is much further north, running almost parallel to Hadrian's Wall.
The glacier advanced from the North and erased the Antonian Wall. Hadrian's Wall delayed it, which is why it was well preserved! It is alleged that the Antonian Wall was destroyed by the Picts. In these and other photos it is clearly visible that the stone wall was destroyed very evenly along its entire length. This could not have happened if people were the cause of the destruction. The Picts would simply have made separate passages in the wall.
A similar situation with defensive ramparts can be found on Russian territory. They are located parallel to each other:
It is stated that Hadrian's Wall had 16 major forts, and the ruins of them are available. It is also indicated that between the forts, smaller towers were erected every 1300 meters, and at intervals of about 500 meters - towers with ladders, which served as shelter from bad weather and for signaling. There are simply no traces of either of them, either after 1300 meters or after 500 meters. It would make sense for these towers and derricks to be somehow incorporated into the stone wall structure if it were all a single project. And in this case, at least something should indicate their former existence. It can be assumed that they were not made from durable materials, out of economy, and therefore no traces of them remained. But they clearly did not spare stone for the construction of the wall itself!
It may be objected that many financial documents have been preserved about the construction of Hadrian's Wall. We must not forget that Britain was a distant outskirts of the empire. The emperor is far away, and corruption existed even before the Romans.