I understand that this sentence
Sei libero però non profittartene.
means “You are free but you don't take benefit from this (your freedom).”
It seems to me profittartene is an infinito. Is the sentence correct and why do we use an infinito in this case?