Take it twice. Your best score counts.
Usually people take it 6 months to 1 year before going to law school. You should study for at least a couple of months to ensure the best score.
I respectfully disagree with the other gentleman who answered your question; do not take it twice if you don't have to. Some schools take the highest score, some schools average your scores, and others look at all your scores as a whole.