The four-wire switches do not have the same functions as does a five-wire switch. You'd lose the park position, the ability to lock the steering, and some of the older switches have a completely different (electrically) Position 2.
Can it be made to work? Yes.
But why? Is there a reason you didn't just buy the right switch (other than it costs about twice as much ($32 at cb750supply))?
The following switches are common to the 1977 750A:
1977 CB550F
1977, 1978 CB550K
1977, 1978 CB750A
1977, 1978 CB750F
1977, 1978, 1979 CB750K
1979 CB650
The one you have won't fit or mount up the same as the original, either.