Can OpenWrt packages be installed on an earlier release? I'm guessing this generally isn't a good idea, but maybe it's safe for some packages?
Specifically, I'm using 19.07, and I'd like to try out some stuff with gnuplot, which is only available on 21.02. Can I take that 21.02 ipk and install it on 19.07? Or is it likely to cause problems? Will opkg even let me install it?
Moderately likely.
The C library (musl libc) used in the compilation typically changes between releases, and the executable binary is pretty much tied to that. 19.07 and 21.02 use roughly the same version, so there is some hope. (but as the versions are not quite fully identical, a failure is likely.)
Similarly, also the other libraries it possibly links to, may have changed between releases.
So, quite likely the .ipk causes problems. In some cases it might even work, but that is not the high-probability expectation.
(Typically something like "ash: COMMAND not found" style of errors visible in shell, when faulty binaries are tried.)