From the first time I read this as a kid, I recognized that in order for a robot to adhere to these rules, they would have to be programmed with these rules. A bad-faith robot builder could simply not include that programming.
A bad-faith robot builder like literally every one that accepts US government contracts.