These warnings have been persistent for the last 8 years and in my discussions with the US consulate when I was there, it's less about indicating anything in specific and more about the US protecting its own interests and being as clear as possible that they cannot assist on a lot of things right now due to very limited diplomatic presence. The message that I was told at the consulate during the first Ukraine invasion was "we're very limited on staff and influence; we cannot make you leave, but you need to understand that if you get in legal trouble, we likely cannot help you." (this was a bit after the Saint Petersburg US embassy was closed)
While I don't doubt there is some concern about persons being taken for negotiation purposes, I think the major concern is just that the US is not in a position to assist for many foreign citizen services as the diplomatic tensions are far too high right now. Unless you already have good connections in Russia, at best you're stuck in a bad spot without help from the consulate, and at worst there is a chance you become a means of bargaining (though this has always been the case).