Impolitic means lacking good judgment or wisdom, often in a way that is politically or socially disadvantageous. Unwise is the direct synonym. Prudent is actually an antonym, while political only relates to government without capturing the 'unwise' meaning.