How do I know which device is controlled by gesture controls on Ear (3) when it's connected to two phones?

Gesture controls will work on the device running the audio (music, video or call). When no audio is running on the connected devices, it will take effect on the most recently connected device / the most recent device to run audio.