True, I did a quick experiment and went to a backup copy of my messages. I right-clicked on one, then "Open with" and Messages was the first choice. At that point I stopped because I didn't know what it was going to do, but it did know that the file required Messages.
Similarly, I don't know what Messages would do using your method. Would it resend the messages? Is there some flag somewhere that triggers that?
Here is what I would do:
Make a complete backup of everything, because...
Now disconnect from everything, no internet, no wifi, no bluetooth. You want to be isolated.
Stop Messages app.
Then do what you recommended, move away the current files so somewhere else and replace them with the old ones. Restart Messages. See if Messages now has the old messages, find the ones you want, do whatever you want, then stop Messages, get rid of the old files and put the original files back. Now restart Messages and see if Messages has the new messages in place like before.
If so, I'd now reboot and let internet, wifi, bt and whatever connections reconnect again.
And test Messages just to make sure you didn't mess up anything.
If all looks good, well done. If all isn't well, restore everything from the backup.