The bad actors don't follow the robots.txt, or rather are bad actors because they don't follow robots.txt neither the informal courtesy practices. Then the main role of robots.txt is public shaming?
robots.txt does nothing for the bad actors, but for grey actors it's a bit more complicated as they can move from "grey" to "good". Adding something for that in robots.txt in addition to some other limits (if needed) can be useful.