1. If he goes there, he will be arrested.

2. Does he go there, he will be arrested.
(is #2 grammatical?)

3. If he were to go there, he would be arrested.
4. Were he to go there, he would be arrested.
(is #4 grammatical?)

2 is not grammatical. The others are right.