Moscow( CNN) Ukraine will restrict the entry of Russian men aged between 16 and 60 in an effort to prevent Russia from forming “private armies” on its soil, President Petro Poroshenko said Friday.

The ban follows Kiev's imposition of 30 days of martial law in a handful of provinces. Tensions have soared between the two former Soviet Republics afterRussian barges attacked and confiscated three Ukrainian navy vessels and 24 sailors in the Kerch Strait last weekend.

A court in Crimea ordered all 24 sailors to be detained for two months earlier this week pending trial. On Thursday, a number of the sailors were transferred to Moscow, according to a lawyer for two of the sailors. CNN reached out to the detention center but did not receive a response.

Everything you forgot about the conflict in Ukraine