How do I make a Zone capturing mechanic

So I am making a game where 2 teams have to capture all 3 three of the other team’s zone to win. But I don’t know how to stop players from capturing their own zone. Does anyone know how to prevent that??

Removed research since that’s Devices.

what is your way of making the capturing system?

The player stands in the enemy team’s zone which decriments a counter and when it reaches zero they capture it. each team has 3 zones and when they all get captured whichever team captured them wins

Sooooo how do I make the mechanic?