Older versions of Java have known vulnerabilities. Only use 32-bit Java for trusted applications and keep it updated to the latest "Update" (u) number available. Security Best Practices
On Linux, installing 32-bit Java is straightforward via the package manager, provided you have multi-architecture enabled. 32bit java install
Note: Modern macOS (since Catalina and on Apple Silicon) primarily supports 64-bit applications; 32-bit Java is generally not supported on recent macOS versions. If you must run 32-bit Java, use an older macOS version or a virtual machine. Older versions of Java have known vulnerabilities