Or an alternative(maybe): all technologies will be inside highly regulated environments.building a 3d printer from scratch is really hard.
It definitely is right now. Suppose for a moment that a 3D printer were invented that could turn raw materials into perfect copies of itself. Suppose also that the raw materials could be automatically extracted from household and electronic waste. A machine that can turn garbage into copies of itself and other objects with similar complexity to the original machine.
The only remaining obstacle would be software (and data files). If we are to assume that machine learning and AI progress in parallel to the development of such a machine, it's difficult to see how we could ever prevent somebody from putting the pieces together.
I have no idea how we'll survive that.