The translation isn't correct,the better translation is
They would love for you disbelieve just as they disbelieve, so you will be exactly like them. Do not adopt sponsors from among them until they migrate along God´s way. If they should ever turn against you, then seize them and kill them wherever you may find them. Do not adopt any sponsor nor supporter from among them,
So if they try to take over you,then you have to fight them.
Of course once they are fighting then how you will be a friend to them,doesn't make sense to be friends and enemies at the same time.
If i was living at those time then i'll obey the messenger,but now i obey God by obeying his message (the quran),How to obey the dead.
Could you please tell me how the prophet prayed when he was at the age of 25.
Malik : Their real wish is to see that you become a disbeliever, as they themselves have disbelieved, so that you may become exactly like them. So you should not take friends from their ranks unless they immigrate in the way of Allah; and if they do not,
seize them and kill them wherever you find them, and do not take any of them as protectors or helpers.
Yusuf Ali : They but wish that ye should reject faith as they do and thus be on the same footing (as they): but take not friends from their ranks until they flee in the way of Allah (from what is forbidden). But if they turn renegades
seize them and slay them wherever ye find them; and (in any case) take no friends or helpers from their ranks. 607 "
Pickthall : They long that ye should disbelieve even as they disbelieve, that ye may be upon a level (with them). So choose not friends from them till they forsake their homes in the way of Allah; if they turn back
then take them and kill them wherever ye find them, and choose no friend nor helper from among them,
*