The situation that is dangerous here is if a power source were to be connected to one of these inlets and it did not have a sufficiently-sized breaker and the other side has a dead short, you are looking at a fire inside your walls.
I just installed a 50 amp generator inlet on my main panel, and even though my generator has a matching 50 amp circuit breaker, I installed a separate matching 2-pole 50a breaker on the inlet circuit. This protects the electrical system from even the most screwed up of generators being connected to the panel.
Here there is a breaker, and if the UPS is disconnected, there is no power. Of course someone could go and plug this into a 30a outlet, however that's something that I wouldn't do, so its not really my issue
That would be against code.
There's nothing stopping you from running bare wire through your walls.
There's nothing stopping you from not bothering to ground any outlets.
There's nothing stopping you from using 14AWG romex on a 50 amp breaker.
Etc., Etc.
All of that is against code, and I've personally seen all of that in the wild at people's homes, offices, etc.
If you wanted to do things the #rightway, you'd most likely need a subpanel for the UPS to feed.
> however that's something that I wouldn't do, so its not really my issue
Electrical code is designed so that even an incompetent operator cannot produce a dangerous situation inside a building's electrical system. OSHA, USCSB, et. al. would be the first to tell you that relying on a specific individual to interlock a dangerous situation can result in extremely adverse outcomes.