by keeping your weight normal.
whether or not your relatives have type 1 or type 2 diabetes (or no diabetes at all), you will be healthier by exercising, eating a healthy well balanced diet, and keeping your weight normal.
also, see previous questions about causes and prevention, and especially one particular question about prevention of type 1 diabetes. 