Means for preventing overload or deleterious influence of the measured medium on the measuring device or vice versa