Poland should not stay in EU at all costs, says minister