The only way around it is to use Wireless Direct, but you will have to switch among the different wireless networks with your Mac.
Follow steps one below to enable Wireless Direct for the printer (which will act like a router):
Next click the Wifi icon on your Mac, select Show Networks,
Click on Joind other network and connect to the wireless direct connection,
Hope that may help,