Separate channels.
Use this visual aide.
For best performance, you want each ZigBee network and WiFi separated. For example, I have a Sonoff dongle with Z2M on channel 15, Hue bridge on 25, and all WiFi APs are on channel 1, 6, or 11.