1) You should have done it earlier.
= คุณควรทำมันให้เสร็จก่อน(นะครับ/นะคะ)
= (khun kwon tam man hai sed korn (na krub/na ka))
2) You should not have done it.
= คุณไม่ควรทำมันจนเสร็จก่อน(นะครับ/นะคะ)
= (khun mai kwon tam man chon sed korn (na krub/na ka))
(directly translate = คุณไม่ควรทำมันให้เสร็จก่อน. but sounds strange. So I change "ให้" to be "จน".)
* (na krub/na ka) to make the sentences more naturally more polite.