Provided context is missing or objective, "to" is impersonal, "you" is personal. In writing, the latter could only really be proper as detailing a conversation between characters in the book, or it will mistakenly be addressed to the reader, which mightn't want to be ordered about.
It would be very strange indeed to see the latter in writing without quotes, let's say as an admonition on a sign. "Remember/ensure/make sure to" would be fine, but if "you" is substituted, there's this strange case of a sign made of dead matter talking topersonally addressing the air.