"It is the function of vice to keep virtue within reasonable grounds."