Wenn sie isst, trinke ich. Correct.
Ich trinke, wenn sie isst. Correct.
Wenn sie isst, ich trinke. Not correct.
The verb of the main clause has to be on position 2. In Duos sentence the subordinate clause is on pos 1. Since the verb has to be on pos 2 it can only be at this place.