There are obviously two meanings to the word vice. One is a tool which clamps and the other a wrong action. Dreaming of a vice in its first sense may suggest that we are being constrained in some way.
The second indicates that we are aware of the side of ourselves which is rebellious and out of step with society. We may in both cases need to make adjustments in our behaviour.