It shall be the duty of any railroad company to put in good repair and maintain in good condition all crossings on all streets or parts of streets through or over which its line of tracks may run and to keep the same free from obstructions of every kind.