Man jailed for breaching restraining order by visiting ex after son was stabbed