MacBook keeps switching between my 2.4Ghz and 5Ghz wifi networks for no reason
Try this...

System Preferences > Network > Wi-Fi > Advanced

Drag the various wifi logins to the order you want.  In your case, the 2.4GHz above the 5GHz.